-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Normative: Remove Species check for TypedArrays ArrayBuffers and SharedArrayBuffers #3450
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -6572,6 +6572,9 @@ <h1> | |||||
| 1. If IsConstructor(_S_) is *true*, return _S_. | ||||||
| 1. Throw a *TypeError* exception. | ||||||
| </emu-alg> | ||||||
| <emu-note> | ||||||
| <p>Species constructor is only available for Array, RegExp and Promise built-in classes.</p> | ||||||
|
||||||
| <p>Species constructor is only available for Array, RegExp, and Promise built-in classes. </p> | |
| <p>Species constructor is only available for Array, RegExp, and Promise built-in classes.</p> |
Outdated
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.
Editors discussed this and we think that capturing "we aren't going to do this anymore" probably doesn't belong in the spec itself. Instead, how-we-work/normative-conventions.md would be a good place for capturing this for the committee's benefit, and MDN for the community's.
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.
Should this note be removed entirely or should the comment about species constructor availability stay?
bakkot marked this conversation as resolved.
Show resolved
Hide resolved
Outdated
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.
| <dd>It is used to specify the creation of a new TypedArray using a constructor function that is derived from _exemplar_. This operation always uses one of the built-in TypedArray constructors.</dd> | |
| <dd>It is used to specify the creation of a new TypedArray using a constructor function that is derived from _exemplar_. This operation always uses one of the built-in TypedArray constructors. Prior to the 2025 edition of the specification some TypedArray methods made use of SpeciesCreate, but that functionality has been removed.</dd> |
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.