Skip to content

Commit

Permalink
Editorial: Guard TypedArray methods from non-exotic receivers
Browse files Browse the repository at this point in the history
  • Loading branch information
shvaikalesh committed May 28, 2019
1 parent a5375bd commit b26eacb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -8358,7 +8358,7 @@ <h1>[[Get]] ( _P_, _Receiver_ )</h1>
<p>When the [[Get]] internal method of an Integer-Indexed exotic object _O_ is called with property key _P_ and ECMAScript language value _Receiver_, the following steps are taken:</p>
<emu-alg>
1. Assert: IsPropertyKey(_P_) is *true*.
1. If Type(_P_) is String, then
1. If SameValue(_O_, _Receiver_) and Type(_P_) is String, then
1. Let _numericIndex_ be ! CanonicalNumericIndexString(_P_).
1. If _numericIndex_ is not *undefined*, then
1. Return ? IntegerIndexedElementGet(_O_, _numericIndex_).
Expand All @@ -8371,7 +8371,7 @@ <h1>[[Set]] ( _P_, _V_, _Receiver_ )</h1>
<p>When the [[Set]] internal method of an Integer-Indexed exotic object _O_ is called with property key _P_, value _V_, and ECMAScript language value _Receiver_, the following steps are taken:</p>
<emu-alg>
1. Assert: IsPropertyKey(_P_) is *true*.
1. If Type(_P_) is String, then
1. If SameValue(_O_, _Receiver_) and Type(_P_) is String, then
1. Let _numericIndex_ be ! CanonicalNumericIndexString(_P_).
1. If _numericIndex_ is not *undefined*, then
1. Return ? IntegerIndexedElementSet(_O_, _numericIndex_, _V_).
Expand Down

0 comments on commit b26eacb

Please sign in to comment.