This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
[[Set]] or [[DefineOwnProperty]]? #2
Comments
I think you’re correct, |
Loirooriol
added a commit
to Loirooriol/object-from-entries
that referenced
this issue
Mar 6, 2018
In tc39#2 it was decided to do this change to the algorithm, but the polyfill was not updated. This affects the result of `Object.fromEntries([["__proto__", {}]])`
@bakkot [[DefineOwnProperty]] is not consistent with |
@Loirooriol Object spread ( |
@mathiasbynens I know, and I prefer it if |
@Loirooriol Whoops, thanks, fixed. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Array.from
creates properties with CreateDataPropertyOrThrow, which relies on [[DefineOwnProperty]].Object.assign
uses Set, which relies on [[Set]].Which one is more appropriate for
Object.fromEntries
?The text was updated successfully, but these errors were encountered: