Skip to content
This repository has been archived by the owner on Apr 23, 2021. It is now read-only.

Not-yet-visited keys deleted on a [[Get]] must not show up in the output #4

Closed
ljharb opened this issue Sep 25, 2015 · 1 comment
Closed

Comments

@ljharb
Copy link
Member

ljharb commented Sep 25, 2015

Per https://bugzilla.mozilla.org/show_bug.cgi?id=1208464#c8:

a getter for one property can delete another property:

var o = {get a() {delete this.b; return 1}, b: 2, c: 3};
var keys = Object.keys(o);
var values = keys.map(key => o[key]);

This results in [1, undefined, 3], but should result in [1, 3].

This needs to be fixed in all three polyfills.

@ljharb
Copy link
Member Author

ljharb commented Sep 25, 2015

Fixed in all three polyfills, and the two published ones have been bumped.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant