Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Array.prototype[@@unscopables] #30

Closed
rkirsling opened this issue Oct 2, 2020 · 0 comments
Closed

Array.prototype[@@unscopables] #30

rkirsling opened this issue Oct 2, 2020 · 0 comments

Comments

@rkirsling
Copy link
Member

Just so we don't forget: "item" will need to be added to Array.prototype[@@unscopables] before merging to ECMA-262.

philn pushed a commit to philn/old-webkit that referenced this issue Oct 4, 2020
https://bugs.webkit.org/show_bug.cgi?id=217243

Reviewed by Yusuke Suzuki.

JSTests:

* stress/unscopables.js:
Update test.

Source/JavaScriptCore:

ES2015+ Array methods must be listed in Array.prototype[@@unscopables] per the note here:
https://tc39.es/ecma262/#sec-array.prototype-@@unscopables

The Array#item spec doesn't currently make this explicit, but I created an issue to ensure it isn't overlooked:
tc39/proposal-relative-indexing-method#30

* runtime/ArrayPrototype.cpp:
(JSC::ArrayPrototype::finishCreation):

LayoutTests:

* js/array-unscopables-properties-expected.txt:
* js/script-tests/array-unscopables-properties.js:
Update test.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@267912 268f45cc-cd09-0410-ab3c-d52691b4dbfc
syg added a commit that referenced this issue Nov 20, 2020
@syg syg closed this as completed Nov 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants