@@ -11841,8 +11841,7 @@ is the concatenation of the [=interface=]'s
11841
11841
When the \[[SetPrototypeOf]] internal method of a [=named properties object=] |O| is called with
11842
11842
JavaScript language value |V|, the following step is taken:
11843
11843
11844
- 1. If |O|'s [=associated realm=]'s [=is global prototype chain mutable=] is true,
11845
- return [=?=] [$OrdinarySetPrototypeOf$](|O|, |V|).
11844
+ 1. Assert: |O|'s [=associated realm=]'s [=is global prototype chain mutable=] is false.
11846
11845
1. Return [=?=] <a abstract-op>SetImmutablePrototype</a>(|O|, |V|).
11847
11846
11848
11847
</div>
@@ -13552,7 +13551,8 @@ the realm given as an argument.
13552
13551
1. [=Define the iteration methods=] of |interface| on |instance| given |realm|.
13553
13552
1. [=Define the asynchronous iteration methods=] of |interface| on |instance| given |realm|.
13554
13553
1. [=Define the global property references=] on |instance|, given |realm|.
13555
- 1. Set |instance|.\[[SetPrototypeOf]] as defined in [[#platform-object-setprototypeof]].
13554
+ 1. If |realm|'s [=is global prototype chain mutable=] is false, then:
13555
+ 1. Set |instance|.\[[SetPrototypeOf]] as defined in [[#platform-object-setprototypeof]].
13556
13556
1. Otherwise, if |interfaces| contains an [=interface=] which
13557
13557
[=support indexed properties|supports indexed properties=],
13558
13558
[=support named properties|named properties=], or both:
@@ -13661,8 +13661,7 @@ Issue: Define those properties imperatively instead.
13661
13661
[=interface=] with the [{{Global}}] [=extended attribute=] is called with
13662
13662
JavaScript language value |V|, the following step is taken:
13663
13663
13664
- 1. If |O|'s [=associated realm=]'s [=is global prototype chain mutable=] is true,
13665
- return [=?=] [$OrdinarySetPrototypeOf$](|O|, |V|).
13664
+ 1. Assert: |O|'s [=associated realm=]'s [=is global prototype chain mutable=] is false.
13666
13665
1. Return [=?=] <a abstract-op>SetImmutablePrototype</a>(|O|, |V|).
13667
13666
13668
13667
</div>
0 commit comments