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

Normative: Remove detached array buffer check prior to calling CloneArrayBuffer #1009

Merged
merged 1 commit into from
Jul 18, 2018

Conversation

anba
Copy link
Contributor

@anba anba commented Sep 22, 2017

This aligns the detached array buffer checks in step 18 and 19 of 22.2.4.3.

Fixes #1002

…rrayBuffer

This aligns the detached array buffer checks in step 18 and 19 of 22.2.4.3.

Fixes tc39#1002
@littledan
Copy link
Member

It looks like this only affects the ordering of detached buffer errors and errors from running out of memory. Is that right? If so, this seems like a good idea. If I'm understanding things right, this would be pretty difficult to write a reliable test for (which size buffer will run out of memory when you clone it?) so I think we should waive the testing requirement here.

@anba
Copy link
Contributor Author

anba commented Sep 25, 2017

I can create a test for test262 based on the example code in #1002.

anba added a commit to anba/test262 that referenced this pull request Sep 25, 2017
@anba
Copy link
Contributor Author

anba commented Jan 11, 2018

@ljharb ljharb added has consensus This has committee consensus. has test262 tests labels Jan 11, 2018
leobalter pushed a commit to tc39/test262 that referenced this pull request Jan 30, 2018
@littledan
Copy link
Member

Is there anything holding back this PR landing?

@anba
Copy link
Contributor Author

anba commented Mar 5, 2018

The change is also implemented in Firefox Nightly and will ship in Firefox 60 (https://bugzilla.mozilla.org/show_bug.cgi?id=1423878).

@ljharb ljharb requested review from bterlson and bmeck March 5, 2018 19:21
@ljharb ljharb added the normative change Affects behavior required to correctly evaluate some ECMAScript source text label Mar 5, 2018
@ljharb ljharb assigned ljharb and unassigned bterlson Jul 18, 2018
@ljharb ljharb force-pushed the detached-arraybuffer-typedarray-ctor branch from 14fc9d4 to d0d31dc Compare July 18, 2018 18:53
@ljharb ljharb merged commit d0d31dc into tc39:master Jul 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has consensus This has committee consensus. has test262 tests normative change Affects behavior required to correctly evaluate some ECMAScript source text
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants