Skip to content

Commit

Permalink
Editorial: Allocate-and-use in MakeMatchIndicesIndexPairArray for ref…
Browse files Browse the repository at this point in the history
…inement (tc39#3495)
  • Loading branch information
kimjg1119 authored and ljharb committed Jan 16, 2025
1 parent e645d2c commit 1f6ac07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion esmeta-ignore.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"FunctionBody[0,0].EvaluateFunctionBody",
"GetViewByteLength",
"INTRINSICS.Atomics.notify",
"MakeMatchIndicesIndexPairArray",
"Record[SourceTextModuleRecord].ExecuteModule",
"TypedArrayGetElement",
"TypedArrayLength",
Expand Down
9 changes: 5 additions & 4 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -38812,11 +38812,12 @@ <h1>
1. Else,
1. Let _matchIndexPair_ be *undefined*.
1. Perform ! CreateDataPropertyOrThrow(_A_, ! ToString(𝔽(_i_)), _matchIndexPair_).
1. If _i_ > 0 and _groupNames_[_i_ - 1] is not *undefined*, then
1. Assert: _groups_ is not *undefined*.
1. If _i_ > 0, then
1. Let _s_ be _groupNames_[_i_ - 1].
1. NOTE: If there are multiple groups named _s_, _groups_ may already have an _s_ property at this point. However, because _groups_ is an ordinary object whose properties are all writable data properties, the call to CreateDataPropertyOrThrow is nevertheless guaranteed to succeed.
1. Perform ! CreateDataPropertyOrThrow(_groups_, _s_, _matchIndexPair_).
1. If _s_ is not *undefined*, then
1. Assert: _groups_ is not *undefined*.
1. NOTE: If there are multiple groups named _s_, _groups_ may already have an _s_ property at this point. However, because _groups_ is an ordinary object whose properties are all writable data properties, the call to CreateDataPropertyOrThrow is nevertheless guaranteed to succeed.
1. Perform ! CreateDataPropertyOrThrow(_groups_, _s_, _matchIndexPair_).
1. Return _A_.
</emu-alg>
</emu-clause>
Expand Down

0 comments on commit 1f6ac07

Please sign in to comment.