Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ES3 Object.prototype.propertyIsEnumerable missing #682

Open
jdalton opened this issue Dec 9, 2014 · 5 comments
Open

ES3 Object.prototype.propertyIsEnumerable missing #682

jdalton opened this issue Dec 9, 2014 · 5 comments

Comments

@jdalton
Copy link

jdalton commented Dec 9, 2014

tessel is missing support for ES3 Object.prototype.propertyIsEnumerable.

@rwaldron
Copy link
Contributor

rwaldron commented Dec 9, 2014

@jdalton well hello sir :)

Just to give you some (hopefully valuable) insight: the Object meta property system is incomplete (well known issue). Currently progress is blocked while @tcr refines the lua-jit work to make it possible to implement the semantics with reasonable performance. Here's an outline, but I'll ask you to keep in mind that the prime directive is to fix these things as soon as is reasonably feasible. Stay positive ;)

  • Setting a property's configurable, writable or enumerable attribute is currently meaningless
  • Object.getOwnPropertyDescriptor returns a hard coded object of attributes and values (as a placeholder)
  • Object.freeze is effectively a no-op identity function
  • Missing: Object.{isFrozen, seal, isSealed, preventExtensions, isExtensible }
  • no strict mode

Help from you would be <3 :)

@jdalton
Copy link
Author

jdalton commented Dec 9, 2014

Cool. No worries, just giving a heads up. @mattpodwysocki had mentioned Lo-Dash errored because of the missing API. I know at least ES5-shim & MooTools use it too.

@rwaldron
Copy link
Contributor

rwaldron commented Dec 9, 2014

Oh cool, that's an awesome find :)

@tberthe
Copy link

tberthe commented Mar 23, 2015

Hello.
Is any correction planned for this issue ?
hasOwnProperty(...) is used by many modules such as express (merge-descriptors, proxy-addr, qs) or body-parser (iconv-lite, qs)

@rwaldron
Copy link
Contributor

@tberthe there is currently no mechanism to differentiate own vs. inherited properties. According to MOVING FASTER WITH IO.JS, attention is moving to Tessel 2, which will run io.js.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants