From 0a0215d52676290b7d6e5bcd8ee05364dd21c393 Mon Sep 17 00:00:00 2001 From: Leo Balter Date: Tue, 14 Jul 2020 10:45:06 -0700 Subject: [PATCH] Normative: Strictness check for object's SetMutableBinding Fixes #2093 --- spec.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec.html b/spec.html index f4942239ff..883cd873b2 100644 --- a/spec.html +++ b/spec.html @@ -6551,6 +6551,9 @@

SetMutableBinding ( _N_, _V_, _S_ )

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 _value_ be ? HasProperty(_bindings_, _N_). + 1. If _value_ is *false*, then + 1. If _S_ is *true*, throw a *ReferenceError* exception. 1. Return ? Set(_bindings_, _N_, _V_, _S_).