Skip to content

Commit

Permalink
Editorial: Re-word a TypedArray table lookup
Browse files Browse the repository at this point in the history
During review of PR tc39#2997, @michaelficarra suggested changing:
> the intrinsic object listed in column one of {Table 68} for _exemplar_.[[TypedArrayName]]
to:
> the intrinsic object associated with the constructor name _exemplar_.[[TypedArrayName]] in {Table 68}
in the new AO TypedArrayCreateSameType.
(tc39#2997 (review))

This commit makes the same change in the pre-existing AO TypedArraySpeciesCreate.
  • Loading branch information
jmdyck committed Mar 18, 2023
1 parent 6e70bb6 commit 693205d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -39925,7 +39925,7 @@ <h1>
<dd>It is used to specify the creation of a new TypedArray using a constructor function that is derived from _exemplar_. Unlike ArraySpeciesCreate, which can create non-Array objects through the use of @@species, this operation enforces that the constructor function creates an actual TypedArray.</dd>
</dl>
<emu-alg>
1. Let _defaultConstructor_ be the intrinsic object listed in column one of <emu-xref href="#table-the-typedarray-constructors"></emu-xref> for _exemplar_.[[TypedArrayName]].
1. Let _defaultConstructor_ be the intrinsic object associated with the constructor name _exemplar_.[[TypedArrayName]] in <emu-xref href="#table-the-typedarray-constructors"></emu-xref>.
1. Let _constructor_ be ? SpeciesConstructor(_exemplar_, _defaultConstructor_).
1. Let _result_ be ? TypedArrayCreate(_constructor_, _argumentList_).
1. Assert: _result_ has [[TypedArrayName]] and [[ContentType]] internal slots.
Expand Down

0 comments on commit 693205d

Please sign in to comment.