Open caleb-distributive opened 1 month ago
Q: Is this holding up BiFrost 2? If so, how? If not, we should pull this from the 1.0 Milestone
Some thoughts:
python.classes
or something@wesgarland it is not holding up Bifrost2 - it was moved to the > V1.0.1 release (aka after 1.0 Milestone)
Describe your feature request here.
Proxied python objects currently do not have a proper prototype chain, and we are instead mimicking prototype chain behaviour by special-casing [[GetOwnPropertyDescriptor]] when the prop name is equal to a default prop name on the intended prototype.
For example, in:
l.pop
is accomplished by us intercepting prop lookup onl
, seeing that the prop name is"pop"
, and passing back our own implementation ofpop
that is special-cased for python lists. This has some interesting consequences:I propose that we define our own classes/prototypes for our proxied objects, and have those classes/prototypes inherit from the respective mimicked types, like so:
Code example
No response