Fix bug in JSON.parse for objects containing "__proto__" as key.
authorlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 8 Feb 2011 11:38:15 +0000 (11:38 +0000)
committerlrn@chromium.org <lrn@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 8 Feb 2011 11:38:15 +0000 (11:38 +0000)
commit48fadffcc4b23eb6fcea4ca40115b4c6d67f461e
treeb3de5d76e802b599fa18ec3de94c73b1d38ca844
parent46e82e2f7ef3d8e80fe0cb98114d9e1681130ab0
Fix bug in JSON.parse for objects containing "__proto__" as key.

It added the __proto__ key as a normal key, which made it visible
in enumeration, while reading still hit the hard-coded accessor.

Review URL: http://codereview.chromium.org/6451002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6674 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/parser.cc
test/mjsunit/json.js