Skip to content

Commit

Permalink
Normative: Object.getOwnPropertyDescriptors should not create keys …
Browse files Browse the repository at this point in the history
…for undefined descriptors.

Per discussion on #582 (comment)
  • Loading branch information
ljharb committed Jun 2, 2016
1 parent f8a9be8 commit 6b5d685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -22677,7 +22677,7 @@ <h1>Object.getOwnPropertyDescriptors ( _O_ )</h1>
1. Repeat, for each element _key_ of _ownKeys_ in List order,
1. Let _desc_ be ? _obj_.[[GetOwnProperty]](_key_).
1. Let _descriptor_ be ! FromPropertyDescriptor(_desc_).
1. Perform ! CreateDataProperty(_descriptors_, _key_, _descriptor_).
1. If _descriptor_ is not *undefined*, perform ! CreateDataProperty(_descriptors_, _key_, _descriptor_).
1. Return _descriptors_.
</emu-alg>
</emu-clause>
Expand Down

0 comments on commit 6b5d685

Please sign in to comment.