Updates:
        Status: Duplicate
        Owner: [email protected]
        Cc: [email protected]
        Mergedinto: 621

Comment #3 on issue 2532 by [email protected]: Create Map object that does not have __proto__ quirk
http://code.google.com/p/v8/issues/detail?id=2532

In response to you original example: JSON.parse() no longer special-cases the "__proto__" property on V8 bleeding edge since r13728 (i.e. landed just a few hours ago). With this change the object returned by JSON.parse() in you original example will have two own properties (i.e. "__proto__" and "toString"). This is in line with the ES6 draft, as JSON.parse() is defined using [[DefineOwnProperty]].

As to your idea of having a separate Map object: I would encourage you to look at Harmony Maps which are also part of the current ES6 draft. You could leverage those to get the behavior of full-featured collections.

http://wiki.ecmascript.org/doku.php?id=harmony:simple_maps_and_sets

I am marking this issue as a dupe of issue 621 as it is mostly about JSON.parse() behavior.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to