-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: Return false in [[PreventExtensions]] for variable length TypedArrays #3453
Conversation
Doesn't have test262 tests yet at time of this comment. |
https://tc39.es/ecma262/#sec-typedarray-exotic-objects and https://tc39.es/ecma262/#sec-typedarraycreate need to be updated to mention the new |
spec.html
Outdated
@@ -41830,6 +41844,22 @@ <h1> | |||
1. Return ~unused~. | |||
</emu-alg> | |||
</emu-clause> | |||
|
|||
<emu-clause id="sec-isfixedlengthtypedarray" type="abstract operation"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would put this up with IsTypedArrayOutOfBounds. This section is only really for the initialization-related AOs.
Also since this takes a TA, it should be IsTypedArrayFixedLength
: it asks a question about a TA, rather than determining whether an arbitrary object is a fixed-length TA.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, moving it sounds good.
Re: IsTypedArrayFixedLength name, this was to be consistent with IsFixedLengthArrayBuffer. We can change both though as a followup, I have no issue with your suggestion.
Object.freeze will always throw on variable-length TAs with this has-consensus PR: tc39/ecma262#3453
This is a spec normative change: tc39/ecma262#3453 Fixed: 374310073 Change-Id: I085260fea077bc27cf1e4f06d4389519e12c4e14 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6014979 Commit-Queue: Shu-yu Guo <[email protected]> Auto-Submit: Shu-yu Guo <[email protected]> Commit-Queue: Rezvan Mahdavi Hezaveh <[email protected]> Reviewed-by: Rezvan Mahdavi Hezaveh <[email protected]> Cr-Commit-Position: refs/heads/main@{#97166}
This is a spec normative change: tc39/ecma262#3453 Fixed: 374310073 Change-Id: I085260fea077bc27cf1e4f06d4389519e12c4e14 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6014979 Commit-Queue: Shu-yu Guo <[email protected]> Auto-Submit: Shu-yu Guo <[email protected]> Commit-Queue: Rezvan Mahdavi Hezaveh <[email protected]> Reviewed-by: Rezvan Mahdavi Hezaveh <[email protected]> Cr-Commit-Position: refs/heads/main@{#97166}
This is a spec normative change: tc39/ecma262#3453 Fixed: 374310073 Change-Id: I085260fea077bc27cf1e4f06d4389519e12c4e14 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/6014979 Commit-Queue: Shu-yu Guo <[email protected]> Auto-Submit: Shu-yu Guo <[email protected]> Commit-Queue: Rezvan Mahdavi Hezaveh <[email protected]> Reviewed-by: Rezvan Mahdavi Hezaveh <[email protected]> Cr-Commit-Position: refs/heads/main@{#97166}
374b2bc
to
c1040ff
Compare
Fixes #3385