Skip to content

Commit

Permalink
Normative: Make [[Delete]] on module namespace return false for @@toS…
Browse files Browse the repository at this point in the history
…tringTag. (#767)

A module namespace exotic object has an own Symbol.toStringTag property, which
is non-configurable.  This patch changes [[Delete]] to return false rather than
true for this property, thus making its behavior consistent with other own
properties of the object.
  • Loading branch information
GeorgNeis authored and bterlson committed Mar 22, 2017
1 parent c8a6acf commit d7f6ed8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -8330,6 +8330,8 @@ <h1>[[Delete]] ( _P_ )</h1>
<p>When the [[Delete]] internal method of a module namespace exotic object _O_ is called with property key _P_, the following steps are taken:</p>
<emu-alg>
1. Assert: IsPropertyKey(_P_) is *true*.
1. If Type(_P_) is Symbol, then
1. Return ? OrdinaryDelete(_O_, _P_).
1. Let _exports_ be _O_.[[Exports]].
1. If _P_ is an element of _exports_, return *false*.
1. Return *true*.
Expand Down

0 comments on commit d7f6ed8

Please sign in to comment.