mattbierner / atum

Javascript Interpreter in Functional-Style Javascript
MIT License
19 stars 2 forks source link

Better support For Object Pseudo Properties #115

Closed mattbierner closed 11 years ago

mattbierner commented 11 years ago

Some objects, like String instances, can have properties that do not map to actual stored properties for indices. Currently, it is assumed that all object store their properties in their properties property.

mattbierner commented 11 years ago

Meta objects now have getPropertyOwnNames property that returns host set of property names. String overrides this to push the string index properties into the set as well.

Pseudo own properties can be added by overriding getOwnPropertyNames and getOwnProperty