Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normative: Object.getOwnPropertyDescriptors should not create keys for undefined descriptors #593

Merged
merged 1 commit into from
Jul 28, 2016

Conversation

ljharb
Copy link
Member

@ljharb ljharb commented Jun 2, 2016

Per discussion on #582 (comment)

This needs TC39 consensus.

@bterlson bterlson added the needs consensus This needs committee consensus before it can be eligible to be merged. label Jun 2, 2016
ljharb added a commit to tc39/agendas that referenced this pull request Jun 2, 2016
@leobalter
Copy link
Member

It's also good to check the current behavior on runtimes. Would you like to feed test262 with a few assertions for this change?

@ljharb
Copy link
Member Author

ljharb commented Jun 2, 2016

@leobalter sure, i'll put up a PR to test262 as well, that can be pending this change.

@ljharb
Copy link
Member Author

ljharb commented Jun 2, 2016

@leobalter done tc39/test262#662

@ljharb ljharb force-pushed the ljharb/gopds_bad_proxies branch 7 times, most recently from 48e3d77 to c611481 Compare June 9, 2016 18:24
ljharb added a commit to ljharb/test262 that referenced this pull request Jun 9, 2016
@evilpie
Copy link
Contributor

evilpie commented Jun 12, 2016

Can this be merged?

@leobalter
Copy link
Member

leobalter commented Jun 12, 2016

It needs consensus, so it's open until the next meeting.

@ljharb ljharb force-pushed the ljharb/gopds_bad_proxies branch from c611481 to 6cd67e1 Compare June 15, 2016 04:38
ljharb added a commit to ljharb/test262 that referenced this pull request Jun 15, 2016
ljharb added a commit to ljharb/test262 that referenced this pull request Jun 16, 2016
ljharb added a commit to ljharb/test262 that referenced this pull request Jul 2, 2016
ljharb added a commit to ljharb/test262 that referenced this pull request Jul 2, 2016
ljharb added a commit to ljharb/test262 that referenced this pull request Jul 2, 2016
ljharb added a commit to ljharb/test262 that referenced this pull request Jul 2, 2016
@ljharb ljharb force-pushed the ljharb/gopds_bad_proxies branch from 6cd67e1 to 6b5d685 Compare July 2, 2016 21:47
ljharb added a commit to ljharb/test262 that referenced this pull request Jul 4, 2016
kisg pushed a commit to paul99/v8mips that referenced this pull request Jul 4, 2016
…gOPDs

Implements the change proposed at tc39/ecma262#593.

In summary, Object.getOwnPropertyDescriptors can produce results which cause
Object.defineProperties() to throw, by inserting a property with an undefined
descriptor into the result object. This change to the algorithm requires that
the descriptor only be added to the result object if it is not undefined.

BUG=v8:4725
R=littledan@chromium.org, adamk@chromium.org, jwolfe@igalia.com

Review-Url: https://codereview.chromium.org/2118613003
Cr-Commit-Position: refs/heads/master@{#37504}
@ljharb ljharb force-pushed the ljharb/gopds_bad_proxies branch from 6b5d685 to 316cf3a Compare July 6, 2016 16:13
@ljharb ljharb force-pushed the ljharb/gopds_bad_proxies branch from 316cf3a to 58fc6a0 Compare July 18, 2016 21:38
ljharb added a commit to ljharb/test262 that referenced this pull request Jul 18, 2016
@ljharb ljharb force-pushed the ljharb/gopds_bad_proxies branch from 58fc6a0 to f76e9c6 Compare July 26, 2016 18:04
ljharb added a commit to ljharb/test262 that referenced this pull request Jul 26, 2016
@ljharb
Copy link
Member Author

ljharb commented Jul 26, 2016

This received consensus at the July 2016 TC39 meeting; please merge at your leisure.

ljharb added a commit to es-shims/Object.getOwnPropertyDescriptors that referenced this pull request Jul 26, 2016
ljharb added a commit to es-shims/Object.getOwnPropertyDescriptors that referenced this pull request Jul 26, 2016
ljharb added a commit to ljharb/test262 that referenced this pull request Jul 26, 2016
ljharb added a commit to tc39/proposal-object-getownpropertydescriptors that referenced this pull request Jul 27, 2016
@ljharb ljharb force-pushed the ljharb/gopds_bad_proxies branch from f76e9c6 to aaec801 Compare July 28, 2016 18:23
@bterlson bterlson removed the needs consensus This needs committee consensus before it can be eligible to be merged. label Jul 28, 2016
@bterlson
Copy link
Member

Thank you sir!

@bterlson bterlson merged commit 678fdb9 into tc39:master Jul 28, 2016
@ljharb ljharb deleted the ljharb/gopds_bad_proxies branch July 28, 2016 18:26
ljharb added a commit to ljharb/test262 that referenced this pull request Aug 1, 2016
ljharb added a commit to ljharb/test262 that referenced this pull request Aug 1, 2016
leobalter pushed a commit to tc39/test262 that referenced this pull request Aug 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants