Skip to content

Commit

Permalink
compare strings with SameValue
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot committed Jun 7, 2022
1 parent 34545fe commit 5022959
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 @@ -36286,7 +36286,7 @@ <h1>
1. For each integer _j_ such that _j_ &ge; 1 and _j_ &lt; _i_, do
1. If the _j_<sup>th</sup> capture of _R_ was defined with a |GroupName|, then
1. Let _sj_ be the CapturingGroupName of that |GroupName|.
1. If _sj_ equals _s_ and the _j_<sup>th</sup> element of _r_'s _captures_ List is not *undefined*, set _isMatchedEarlier_ to *true*.
1. If SameValue(_sj_, _s_) is *true* and the _j_<sup>th</sup> element of _r_'s _captures_ List is not *undefined*, set _isMatchedEarlier_ to *true*.
1. If _isMatchedEarlier_ is *false*, then
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_, _capturedValue_).
Expand Down

0 comments on commit 5022959

Please sign in to comment.