Skip to content

Commit

Permalink
Give Location an immutable prototype object
Browse files Browse the repository at this point in the history
Remaining outstanding issue of tc39/ecma262#683.
  • Loading branch information
annevk committed Jan 10, 2019
1 parent 6ec828c commit ae94d36
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -10815,9 +10815,15 @@ with the [{{NoInterfaceObject}}] [=extended attribute=].
\[[Writable]]: <emu-val>false</emu-val>, \[[Enumerable]]: <emu-val>false</emu-val>,
\[[Configurable]]: <emu-val>true</emu-val>}.
1. Perform [=!=] <a abstract-op>DefinePropertyOrThrow</a>(|interfaceProtoObj|, {{@@unscopables}}, |desc|).
1. If |interface| is declared with the [{{Global}}] [=extended attribute=], or
|interface| is in the set of [=inherited interfaces=] of an interface
that is declared with the [{{Global}}] [=extended attribute=], then:
1. If one of the following is true

* |interface| is declared with the [{{Global}}] [=extended attribute=]
* |interface| is in the set of [=inherited interfaces=] of an interface that is declared
with the [{{Global}}] [=extended attribute=]
* |interface| is {{Location}} and declared with the [{{Exposed}}] [=extended attribute=]
whose value is {{Window}}

then:
1. Set the internal methods of |interfaceProtoObj|
which are specific to [=immutable prototype exotic objects=]
to the definitions specified in
Expand Down

0 comments on commit ae94d36

Please sign in to comment.