Reviewers: rossberg,

Description:
Make __proto__ a foreign callback on Object.prototype.

This moves the __proto__ property to Object.prototype and turns it into
a callback property actually present in the descriptor array as opposed
to a hack in the properties lookup. For now it still is a "magic" data
property using foreign callbacks and not an accessor property visible to
JavaScript.

The second effect of this change is that JSON.parse() no longer treats
the __proto__ property specially, it will be defined as any other data
property. Note that object literals still have their special handling.

[email protected]
BUG=v8:621,v8:1949
TEST=mjsunit,cctest,test262


Please review this at https://codereview.chromium.org/12212011/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/bootstrapper.cc
  M src/factory.h
  M src/factory.cc
  M src/json-parser.h
  M src/objects.cc
  M src/property.h
  M test/cctest/test-api.cc
  M test/mjsunit/builtins.js
  M test/mjsunit/harmony/object-observe.js
  M test/mjsunit/harmony/proxies.js
  M test/mjsunit/json.js
  M test/test262/test262.status


--
--
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