Skip to content

Commit

Permalink
Normative: Verify if Binding is preserved for obj's SetMutableBinding (
Browse files Browse the repository at this point in the history
…tc39#2094)

Verify binding existence in the object's SetMutableBinding on Strict Mode.

Closes tc39#2093
Ref tc39#467
Ref tc39/test262#427
  • Loading branch information
leobalter authored and ljharb committed Jul 30, 2020
1 parent 7efaa50 commit 019d498
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -6626,6 +6626,8 @@ <h1>SetMutableBinding ( _N_, _V_, _S_ )</h1>
<emu-alg>
1. Let _envRec_ be the object Environment Record for which the method was invoked.
1. Let _bindings_ be the binding object for _envRec_.
1. Let _stillExists_ be ? HasProperty(_bindings_, _N_).
1. If _stillExists_ is *false* and _S_ is *true*, throw a *ReferenceError* exception.
1. Return ? Set(_bindings_, _N_, _V_, _S_).
</emu-alg>
</emu-clause>
Expand Down

0 comments on commit 019d498

Please sign in to comment.