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.emu
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ contributors: Matthew Gaudet, Justin Ridgewell
23
23
</h1>
24
24
<dl class="header">
25
25
<dt>description</dt>
26
-
<dd>It walks the prototype chain of _o_ looking for _propertyKey_, returning *true* if retrieving the property could run user code when performing the operation of _kind_: that is, the property is a getter, setter, or a Proxy is encountered on the chain. This should never run user code.</dd>
26
+
<dd>It walks the prototype chain of _o_ looking for _propertyKey_, returning *true* if accessing the property could run user code when performing an operation of _kind_: that is, the property is an accessor whose accessor function for _kind_ is present, or a Proxy exotic object, a module namespace exotic object, or a host object with impure lookup internal methods is encountered on the chain. This should never run user code.</dd>
27
27
</dl>
28
28
<emu-alg>
29
29
1. <ins>Assert: The following steps do not run user code.</ins>
@@ -32,8 +32,9 @@ contributors: Matthew Gaudet, Justin Ridgewell
32
32
1. <ins>If HostObjectHasImpureLookupInternalMethods(_o_) is *true*, return *true*.</ins>
33
33
1. <ins>Let _desc_ be ! _o_.[[GetOwnProperty]](_propertyKey_).</ins>
34
34
1. <ins>If _desc_ is not *undefined*, then</ins>
35
-
1. <ins>If _desc_ has a [[Getter]] field and kind is ~any~ or ~get~, return *true*.</ins>
36
-
1. <ins>If _desc_ has a [[Setter]] field and kind is ~any~ or ~set~, return *true*.</ins>
35
+
1. <ins>If IsAccessorDescriptor(_desc_) is *true*, then</ins>
36
+
1. <ins>If _kind_ is either ~any~ or ~get~, and _desc_.[[Get]] is not *undefined*, return *true*.</ins>
37
+
1. <ins>If _kind_ is either ~any~ or ~set~, and _desc_.[[Set]] is not *undefined*, return *true*.</ins>
37
38
1. <ins>Return *false*.</ins>
38
39
1. <ins>Let _proto_ be _o_.[[GetPrototypeOf]]().</ins>
39
40
1. <ins>If _proto_ is *null*, return *false*.</ins>
0 commit comments