[heycam/webidl] Definition of "is an array index" makes "-0" an array index (#516)

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 https://github.com/heycam/webidl/pull/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 like `document.all["0"]`, which it doesn't as implemented.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/516

Received on Wednesday, 31 January 2018 05:09:39 UTC