Skip to content

Commit 9b3568b

Browse files
authored
Merge pull request #7 from gibson042/gh-6-proxies
Normative: Use IsExtensible(_O_) to check extensibility
2 parents 3bd9727 + 52e3ccc commit 9b3568b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec.emu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ contributors: Shu-yu Guo
2323
<dl class="header">
2424
</dl>
2525
<emu-alg>
26-
1. <ins>If _O_.[[Extensible]] is *false*, throw a *TypeError* exception.</ins>
2726
1. If the host is a web browser, then
2827
1. Perform ? HostEnsureCanAddPrivateElement(_O_).
28+
1. <ins>If ? IsExtensible(_O_) is *false*, throw a *TypeError* exception.</ins>
2929
1. Let _entry_ be PrivateElementFind(_O_, _P_).
3030
1. If _entry_ is not ~empty~, throw a *TypeError* exception.
3131
1. Append PrivateElement { [[Key]]: _P_, [[Kind]]: ~field~, [[Value]]: _value_ } to _O_.[[PrivateElements]].
@@ -44,9 +44,9 @@ contributors: Shu-yu Guo
4444
</dl>
4545
<emu-alg>
4646
1. Assert: _method_.[[Kind]] is either ~method~ or ~accessor~.
47-
1. <ins>If _O_.[[Extensible]] is *false*, throw a *TypeError* exception.</ins>
4847
1. If the host is a web browser, then
4948
1. Perform ? HostEnsureCanAddPrivateElement(_O_).
49+
1. <ins>If ? IsExtensible(_O_) is *false*, throw a *TypeError* exception.</ins>
5050
1. Let _entry_ be PrivateElementFind(_O_, _method_.[[Key]]).
5151
1. If _entry_ is not ~empty~, throw a *TypeError* exception.
5252
1. Append _method_ to _O_.[[PrivateElements]].

0 commit comments

Comments
 (0)