Skip to content

Commit

Permalink
Normative: Remove proxy OwnPropertyKeys error with duplicate keys (#594)
Browse files Browse the repository at this point in the history
Previously, proxy OwnPropertyKeys returning duplicate keys would
cause an error when the target object was non-extensible. The error
does not seem deliberate but rather a result of not considering the
possibility of duplicate keys. This PR handles that possibility and
removes the error.
  • Loading branch information
bterlson committed Jun 3, 2016
1 parent 1c4d441 commit 6d0fc45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -8687,11 +8687,11 @@ <h1>[[OwnPropertyKeys]] ( )</h1>
1. Let _uncheckedResultKeys_ be a new List which is a copy of _trapResult_.
1. Repeat, for each _key_ that is an element of _targetNonconfigurableKeys_,
1. If _key_ is not an element of _uncheckedResultKeys_, throw a *TypeError* exception.
1. Remove _key_ from _uncheckedResultKeys_.
1. Remove all occurrences of _key_ from _uncheckedResultKeys_.
1. If _extensibleTarget_ is *true*, return _trapResult_.
1. Repeat, for each _key_ that is an element of _targetConfigurableKeys_,
1. If _key_ is not an element of _uncheckedResultKeys_, throw a *TypeError* exception.
1. Remove _key_ from _uncheckedResultKeys_.
1. Remove all occurrences of _key_ from _uncheckedResultKeys_.
1. If _uncheckedResultKeys_ is not empty, throw a *TypeError* exception.
1. Return _trapResult_.
</emu-alg>
Expand Down

0 comments on commit 6d0fc45

Please sign in to comment.