You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec.html
+26-26Lines changed: 26 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -6139,11 +6139,11 @@ <h1>
6139
6139
1. If _x_ is a BigInt, then
6140
6140
1. Return BigInt::equal(_x_, _y_).
6141
6141
1. If _x_ is a String, then
6142
-
1. If _x_ and _y_ have the same length and the same code units in the same positions, return *true*; otherwise, return *false*.
6142
+
1. If _x_ and _y_ have the same length and the same code units in the same positions, return *true*; otherwise return *false*.
6143
6143
1. If _x_ is a Boolean, then
6144
-
1. If _x_ and _y_ are both *true* or both *false*, return *true*; otherwise, return *false*.
6144
+
1. If _x_ and _y_ are both *true* or both *false*, return *true*; otherwise return *false*.
6145
6145
1. NOTE: All other ECMAScript language values are compared by identity.
6146
-
1. If _x_ is _y_, return *true*; otherwise, return *false*.
6146
+
1. If _x_ is _y_, return *true*; otherwise return *false*.
6147
6147
</emu-alg>
6148
6148
<emu-note>
6149
6149
For expository purposes, some cases are handled separately within this algorithm even if it is unnecessary to do so.
@@ -10918,7 +10918,7 @@ <h1>HasThisBinding ( ): a Boolean</h1>
10918
10918
<dd>a Function Environment Record _envRec_</dd>
10919
10919
</dl>
10920
10920
<emu-alg>
10921
-
1. If _envRec_.[[ThisBindingStatus]] is ~lexical~, return *false*; otherwise, return *true*.
10921
+
1. If _envRec_.[[ThisBindingStatus]] is ~lexical~, return *false*; otherwise return *true*.
10922
10922
</emu-alg>
10923
10923
</emu-clause>
10924
10924
@@ -10930,7 +10930,7 @@ <h1>HasSuperBinding ( ): a Boolean</h1>
10930
10930
</dl>
10931
10931
<emu-alg>
10932
10932
1. If _envRec_.[[ThisBindingStatus]] is ~lexical~, return *false*.
10933
-
1. If _envRec_.[[FunctionObject]].[[HomeObject]] is *undefined*, return *false*; otherwise, return *true*.
10933
+
1. If _envRec_.[[FunctionObject]].[[HomeObject]] is *undefined*, return *false*; otherwise return *true*.
10934
10934
</emu-alg>
10935
10935
</emu-clause>
10936
10936
@@ -14060,7 +14060,7 @@ <h1>
14060
14060
1. Set the ScriptOrModule of _calleeContext_ to *null*.
14061
14061
1. Perform any necessary implementation-defined initialization of _calleeContext_.
14062
14062
1. Push _calleeContext_ onto the execution context stack; _calleeContext_ is now the running execution context.
14063
-
1. [id="step-call-builtin-function-result"] Let _result_ be the Completion Record that is <emu-meta effects="user-code">the result of evaluating</emu-meta> _F_ in a manner that conforms to the specification of _F_. If _thisArgument_ is ~uninitialized~, the *this* value is uninitialized; otherwise, _thisArgument_ provides the *this* value. _argumentsList_ provides the named parameters. _newTarget_ provides the NewTarget value.
14063
+
1. [id="step-call-builtin-function-result"] Let _result_ be the Completion Record that is <emu-meta effects="user-code">the result of evaluating</emu-meta> _F_ in a manner that conforms to the specification of _F_. If _thisArgument_ is ~uninitialized~, the *this* value is uninitialized; otherwise _thisArgument_ provides the *this* value. _argumentsList_ provides the named parameters. _newTarget_ provides the NewTarget value.
14064
14064
1. NOTE: If _F_ is defined in this document, “the specification of _F_” is the behaviour specified for it via algorithm steps or other means.
14065
14065
1. Remove _calleeContext_ from the execution context stack and restore _callerContext_ as the running execution context.
14066
14066
1. Return ? _result_.
@@ -22132,15 +22132,15 @@ <h1>
22132
22132
1. If the first |Expression| is present, then
22133
22133
1. Let _exprRef_ be ? Evaluation of the first |Expression|.
22134
22134
1. Perform ? GetValue(_exprRef_).
22135
-
1. If the second |Expression| is present, let _test_ be the second |Expression|; otherwise, let _test_ be ~empty~.
22136
-
1. If the third |Expression| is present, let _increment_ be the third |Expression|; otherwise, let _increment_ be ~empty~.
22135
+
1. If the second |Expression| is present, let _test_ be the second |Expression|; otherwise let _test_ be ~empty~.
22136
+
1. If the third |Expression| is present, let _increment_ be the third |Expression|; otherwise let _increment_ be ~empty~.
1. If the length of _S_ is at least 2 and the first two code units of _S_ are either *"0x"* or *"0X"*, then
30081
30081
1. Set _S_ to the substring of _S_ from index 2.
30082
30082
1. Set _R_ to 16.
30083
-
1. If _S_ contains a code unit that is not a radix-_R_ digit, let _end_ be the index within _S_ of the first such code unit; otherwise, let _end_ be the length of _S_.
30083
+
1. If _S_ contains a code unit that is not a radix-_R_ digit, let _end_ be the index within _S_ of the first such code unit; otherwise let _end_ be the length of _S_.
30084
30084
1. Let _Z_ be the substring of _S_ from 0 to _end_.
30085
30085
1. If _Z_ is empty, return *NaN*.
30086
30086
1. Let _mathInt_ be the integer value that is represented by _Z_ in radix-_R_ notation, using the letters <b>A</b> through <b>Z</b> and <b>a</b> through <b>z</b> for digits with values 10 through 35. (However, if _R_ = 10 and _Z_ contains more than 20 significant digits, every significant digit after the 20th may be replaced by a 0 digit, at the option of the implementation; and if _R_ is not one of 2, 4, 8, 10, 16, or 32, then _mathInt_ may be an implementation-approximated integer representing the integer value denoted by _Z_ in radix-_R_ notation.)
1. If _month_ is not present, let _m_ be MonthFromTime(_t_); otherwise, let _m_ be ? ToNumber(_month_).
34774
-
1. If _date_ is not present, let _dt_ be DateFromTime(_t_); otherwise, let _dt_ be ? ToNumber(_date_).
34773
+
1. If _month_ is not present, let _m_ be MonthFromTime(_t_); otherwise let _m_ be ? ToNumber(_month_).
34774
+
1. If _date_ is not present, let _dt_ be DateFromTime(_t_); otherwise let _dt_ be ? ToNumber(_date_).
34775
34775
1. Let _newDate_ be MakeDate(MakeDay(_y_, _m_, _dt_), TimeWithinDay(_t_)).
34776
34776
1. Let _v_ be TimeClip(_newDate_).
34777
34777
1. Set _dateObject_.[[DateValue]] to _v_.
@@ -35004,7 +35004,7 @@ <h1>
35004
35004
1. Let _month_ be the Name of the entry in <emu-xref href="#sec-todatestring-month-names"></emu-xref> with the Number MonthFromTime(_tv_).
35005
35005
1. Let _day_ be ToZeroPaddedDecimalString(ℝ(DateFromTime(_tv_)), 2).
35006
35006
1. Let _yv_ be YearFromTime(_tv_).
35007
-
1. If _yv_ is *+0*<sub>𝔽</sub> or _yv_ > *+0*<sub>𝔽</sub>, let _yearSign_ be the empty String; otherwise, let _yearSign_ be *"-"*.
35007
+
1. If _yv_ is *+0*<sub>𝔽</sub> or _yv_ > *+0*<sub>𝔽</sub>, let _yearSign_ be the empty String; otherwise let _yearSign_ be *"-"*.
35008
35008
1. Let _paddedYear_ be ToZeroPaddedDecimalString(abs(ℝ(_yv_)), 4).
35009
35009
1. Return the string-concatenation of _weekday_, the code unit 0x0020 (SPACE), _month_, the code unit 0x0020 (SPACE), _day_, the code unit 0x0020 (SPACE), _yearSign_, and _paddedYear_.
1. Let _month_ be the Name of the entry in <emu-xref href="#sec-todatestring-month-names"></emu-xref> with the Number MonthFromTime(_tv_).
35261
35261
1. Let _day_ be ToZeroPaddedDecimalString(ℝ(DateFromTime(_tv_)), 2).
35262
35262
1. Let _yv_ be YearFromTime(_tv_).
35263
-
1. If _yv_ is *+0*<sub>𝔽</sub> or _yv_ > *+0*<sub>𝔽</sub>, let _yearSign_ be the empty String; otherwise, let _yearSign_ be *"-"*.
35263
+
1. If _yv_ is *+0*<sub>𝔽</sub> or _yv_ > *+0*<sub>𝔽</sub>, let _yearSign_ be the empty String; otherwise let _yearSign_ be *"-"*.
35264
35264
1. Let _paddedYear_ be ToZeroPaddedDecimalString(abs(ℝ(_yv_)), 4).
35265
35265
1. Return the string-concatenation of _weekday_, *","*, the code unit 0x0020 (SPACE), _day_, the code unit 0x0020 (SPACE), _month_, the code unit 0x0020 (SPACE), _yearSign_, _paddedYear_, the code unit 0x0020 (SPACE), and TimeString(_tv_).
1. Assert: If _position_ is *undefined*, then _numPos_ is *NaN*.
35629
-
1. If _numPos_ is *NaN*, let _pos_ be +∞; otherwise, let _pos_ be ! ToIntegerOrInfinity(_numPos_).
35629
+
1. If _numPos_ is *NaN*, let _pos_ be +∞; otherwise let _pos_ be ! ToIntegerOrInfinity(_numPos_).
35630
35630
1. Let _len_ be the length of _S_.
35631
35631
1. Let _searchLen_ be the length of _searchStr_.
35632
35632
1. Let _start_ be the result of clamping _pos_ between 0 and _len_ - _searchLen_.
@@ -42265,7 +42265,7 @@ <h1>
42265
42265
1. If _targetOffset_ = +∞, throw a *RangeError* exception.
42266
42266
1. If _srcLength_ + _targetOffset_ > _targetLength_, throw a *RangeError* exception.
42267
42267
1. If _target_.[[ContentType]] is not _source_.[[ContentType]], throw a *TypeError* exception.
42268
-
1. If IsSharedArrayBuffer(_srcBuffer_) is *true*, IsSharedArrayBuffer(_targetBuffer_) is *true*, and _srcBuffer_.[[ArrayBufferData]] is _targetBuffer_.[[ArrayBufferData]], let _sameSharedArrayBuffer_ be *true*; otherwise, let _sameSharedArrayBuffer_ be *false*.
42268
+
1. If IsSharedArrayBuffer(_srcBuffer_) is *true*, IsSharedArrayBuffer(_targetBuffer_) is *true*, and _srcBuffer_.[[ArrayBufferData]] is _targetBuffer_.[[ArrayBufferData]], let _sameSharedArrayBuffer_ be *true*; otherwise let _sameSharedArrayBuffer_ be *false*.
42269
42269
1. If SameValue(_srcBuffer_, _targetBuffer_) is *true* or _sameSharedArrayBuffer_ is *true*, then
42270
42270
1. Let _srcByteLength_ be TypedArrayByteLength(_srcRecord_).
42271
42271
1. Set _srcBuffer_ to ? CloneArrayBuffer(_srcBuffer_, _srcByteOffset_, _srcByteLength_).
0 commit comments