Reviewers: Mads Ager,

Description:
Fix construction of simple objects with setters on prototype

Simple objects which are constructed without calling the actual constructor
function did not take setters defined on prototype chain of the new object into
account.

Constructing objects this way is now not done if there are setters involved on
the prototype chain of the new object.

This only fixes the case where the setter is found when the first object from a constructor is created. If the prototype chain is changed new objects will on
take any change to setters into account.

TEST=test/mjsunit/setter-on-constructor-prototype.js

Please review this at http://codereview.chromium.org/606062

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

Affected files:
  M     src/heap.cc
  M     src/objects.h
  M     src/objects.cc
  M     src/runtime.cc
  A     test/mjsunit/setter-on-constructor-prototype.js


--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to