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

Remove a check for array index in [[Set]] #706

Merged
merged 1 commit into from Apr 15, 2019
Merged

Conversation

Ms2ger
Copy link
Member

@Ms2ger Ms2ger commented Apr 4, 2019

Array index properties are not special on objects with named setters. Note
that the corresponding step in [[DefineOwnProperty]] does not have this
condition.

This change does not affect normal usage; it is only detectable by messing with
the prototype of the object.

Gecko and WebKit already handle array indexes the same way as other properties;
Chrome does for DOMStringMap but does not for Storage. (In the Storage case, it
does the exact opposite of the current specification.)


Preview | Diff

Array index properties are not special on objects with named setters. Note
that the corresponding step in [[DefineOwnProperty]] does not have this
condition.

This change does not affect normal usage; it is only detectable by messing with
the prototype of the object.

Gecko and WebKit already handle array indexes the same way as other properties;
Chrome does for DOMStringMap but does not for Storage. (In the Storage case, it
does the exact opposite of the current specification.)
Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but seems like a prime candidate for tests and bugs :).

Ms2ger added a commit to web-platform-tests/wpt that referenced this pull request Apr 4, 2019
@Ms2ger
Copy link
Member Author

Ms2ger commented Apr 4, 2019

Here's the test for Storage: web-platform-tests/wpt#16262

Still need one from DOMStringMap.

@Ms2ger
Copy link
Member Author

Ms2ger commented Apr 5, 2019

DOMStringMap: web-platform-tests/wpt#16278

Ms2ger added a commit to web-platform-tests/wpt that referenced this pull request Apr 15, 2019
Ms2ger added a commit to web-platform-tests/wpt that referenced this pull request Apr 15, 2019
Ms2ger added a commit to web-platform-tests/wpt that referenced this pull request Apr 15, 2019
@Ms2ger Ms2ger merged commit a395a59 into master Apr 15, 2019
@Ms2ger Ms2ger deleted the lpo-set-arrayindex branch April 15, 2019 09:54
Ms2ger added a commit to web-platform-tests/wpt that referenced this pull request Apr 15, 2019
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jun 5, 2019
…, a=testonly

Automatic update from web-platform-tests
Add some binding tests for DOMStringMap.

The specification was updated in whatwg/webidl#706.

--

wpt-commits: 78193fbe36156498378dcd00ee6f1e28007ed355
wpt-pr: 16278
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Jun 5, 2019
…only

Automatic update from web-platform-tests
Improve tested values in set.window.js.

--
Make set.window.js more robust in its cleanup.

--
Update test for Storage [[Set]].

See whatwg/webidl#706.

--

wpt-commits: 0f60b8c9515eee43dd72679361129fffaa56b26f, 4b0d772a1cf073b5ce47552249be5134e40c19f1, e5c1ea19c0563ea97e26ad81ba07ce89f840c47d
wpt-pr: 16262
mykmelez pushed a commit to mykmelez/gecko that referenced this pull request Jun 6, 2019
…, a=testonly

Automatic update from web-platform-tests
Add some binding tests for DOMStringMap.

The specification was updated in whatwg/webidl#706.

--

wpt-commits: 78193fbe36156498378dcd00ee6f1e28007ed355
wpt-pr: 16278
mykmelez pushed a commit to mykmelez/gecko that referenced this pull request Jun 6, 2019
…only

Automatic update from web-platform-tests
Improve tested values in set.window.js.

--
Make set.window.js more robust in its cleanup.

--
Update test for Storage [[Set]].

See whatwg/webidl#706.

--

wpt-commits: 0f60b8c9515eee43dd72679361129fffaa56b26f, 4b0d772a1cf073b5ce47552249be5134e40c19f1, e5c1ea19c0563ea97e26ad81ba07ce89f840c47d
wpt-pr: 16262
marcoscaceres pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 23, 2019
marcoscaceres pushed a commit to web-platform-tests/wpt that referenced this pull request Jul 23, 2019
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 4, 2019
…, a=testonly

Automatic update from web-platform-tests
Add some binding tests for DOMStringMap.

The specification was updated in whatwg/webidl#706.

--

wpt-commits: 78193fbe36156498378dcd00ee6f1e28007ed355
wpt-pr: 16278

UltraBlame original commit: fd0d5d305b28fa2bb42346f07a37d9ca74db1533
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 4, 2019
…only

Automatic update from web-platform-tests
Improve tested values in set.window.js.

--
Make set.window.js more robust in its cleanup.

--
Update test for Storage [[Set]].

See whatwg/webidl#706.

--

wpt-commits: 0f60b8c9515eee43dd72679361129fffaa56b26f, 4b0d772a1cf073b5ce47552249be5134e40c19f1, e5c1ea19c0563ea97e26ad81ba07ce89f840c47d
wpt-pr: 16262

UltraBlame original commit: 6837f59004432d0b31c8904721d598434a4a87f4
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 4, 2019
…, a=testonly

Automatic update from web-platform-tests
Add some binding tests for DOMStringMap.

The specification was updated in whatwg/webidl#706.

--

wpt-commits: 78193fbe36156498378dcd00ee6f1e28007ed355
wpt-pr: 16278

UltraBlame original commit: fd0d5d305b28fa2bb42346f07a37d9ca74db1533
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 4, 2019
…only

Automatic update from web-platform-tests
Improve tested values in set.window.js.

--
Make set.window.js more robust in its cleanup.

--
Update test for Storage [[Set]].

See whatwg/webidl#706.

--

wpt-commits: 0f60b8c9515eee43dd72679361129fffaa56b26f, 4b0d772a1cf073b5ce47552249be5134e40c19f1, e5c1ea19c0563ea97e26ad81ba07ce89f840c47d
wpt-pr: 16262

UltraBlame original commit: 6837f59004432d0b31c8904721d598434a4a87f4
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 4, 2019
…, a=testonly

Automatic update from web-platform-tests
Add some binding tests for DOMStringMap.

The specification was updated in whatwg/webidl#706.

--

wpt-commits: 78193fbe36156498378dcd00ee6f1e28007ed355
wpt-pr: 16278

UltraBlame original commit: fd0d5d305b28fa2bb42346f07a37d9ca74db1533
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 4, 2019
…only

Automatic update from web-platform-tests
Improve tested values in set.window.js.

--
Make set.window.js more robust in its cleanup.

--
Update test for Storage [[Set]].

See whatwg/webidl#706.

--

wpt-commits: 0f60b8c9515eee43dd72679361129fffaa56b26f, 4b0d772a1cf073b5ce47552249be5134e40c19f1, e5c1ea19c0563ea97e26ad81ba07ce89f840c47d
wpt-pr: 16262

UltraBlame original commit: 6837f59004432d0b31c8904721d598434a4a87f4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants