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: index.bs
+5-11Lines changed: 5 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -12200,16 +12200,14 @@ depending on whether the [{{OverrideBuiltins}}]
12200
12200
operates as follows, with property name |P| and object |O|:
12201
12201
12202
12202
<ol class="algorithm">
12203
-
1. If |P| is an [=unforgeable property name=]
12204
-
on |O|, then return false.
12205
-
1. If |O| implements an [=interface=] with
12206
-
an [{{Unforgeable}}]-annotated [=attribute=]
12207
-
whose [=identifier=] is |P|, then return false.
12208
12203
1. If |P| is not a [=supported property name=]
12209
12204
of |O|, then return false.
12205
+
1. If |O| has an own property named |P|, then return false.
12206
+
12207
+
Note: This will include cases in which |O| has unforgeable properties, because in practice those are always set up before objects have any supported property names, and once set up will make the corresponding named properties invisible.
12208
+
12210
12209
1. If |O| implements an interface that has the [{{OverrideBuiltins}}]
12211
12210
[=extended attribute=], then return true.
12212
-
1. If |O| has an own property named |P|, then return false.
12213
12211
1. Initialize |prototype| to be the value of the internal \[[Prototype]] property of |O|.
12214
12212
1. While |prototype| is not null:
12215
12213
1. If |prototype| is not a [=named properties object=],
@@ -12223,16 +12221,12 @@ operates as follows, with property name |P| and object |O|:
12223
12221
This should ensure that for objects with named properties, property resolution is done in the following order:
12224
12222
12225
12223
1. Indexed properties.
12226
-
1. Unforgeable attributes and operations.
12224
+
1. Own properties, including unforgeable attributes and operations.
0 commit comments