Comment #4 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 addition to what Michael said, abusing objects as maps is a well-known
pitfall in JavaScript and the source for many bugs, for this and other
reasons. From ES6 on, that practice will be strongly discouraged in favour
of actual maps as a saner alternative. For ES5-, the recommendation you
often hear is to consistently mangle all key strings to avoid spurious
clashes with potential property names. (Even ES6 will mostly likely still
treat __proto__ in object literals specially, because everything else would
break the web.)
--
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.