From ea73966c3a1e3cb14a06c9c59c1c920410ebb285 Mon Sep 17 00:00:00 2001 From: Leo Balter Date: Thu, 30 Jul 2020 12:00:18 -0700 Subject: [PATCH] Apply suggestion from code review --- spec.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spec.html b/spec.html index 2f4c32e43d0..7dd4868c0d6 100644 --- a/spec.html +++ b/spec.html @@ -6626,9 +6626,8 @@

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. 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_).