Skip to content
Permalink
Browse files

Normative: Remove proxy OwnPropertyKeys error with duplicate keys (#594)

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 6d0fc4578f00f99df8fbd805f3c8db91ca257239
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec.html
@@ -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>

0 comments on commit 6d0fc45

Please sign in to comment.
You can’t perform that action at this time.