-
Notifications
You must be signed in to change notification settings - Fork 165
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
Definition of "is an array index" makes "-0" an array index #516
Comments
@TimothyGu can you take a look? |
I'm inclined to just say "If P is an array index" as ES does it, but since that's not preferred here just adding a |
Well, this affects more than just |
Yes, it affects more things, and I don't think @TimothyGu was suggested a |
https://heycam.github.io/webidl/#dfn-array-index-property-name
This links to https://tc39.github.io/ecma262/#sec-canonicalnumericindexstring which special-cases "-0".
This problem was introduced with #427, the previous definition was OK:
https://web.archive.org/web/20170903233050/heycam.github.io/webidl/#dfn-array-index-property-name
If the current definition were used, it would mean that
document.all["-0"]
should behave likedocument.all["0"]
, which it doesn't as implemented.The text was updated successfully, but these errors were encountered: