Fix handling of foreign callbacks in DefineOwnProperty.
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 20 Dec 2011 08:49:51 +0000 (08:49 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 20 Dec 2011 08:49:51 +0000 (08:49 +0000)
commit04f0e33229fb916da0c8014a0e30ae3138d5c4e3
tree69671ee66b13ab1c4f40e55a093f4beea03ced29
parent6c0a4f5d45c1284dcf085525da9a224a311e30ff
Fix handling of foreign callbacks in DefineOwnProperty.

We use foreign callbacks to make some properties shadow internal values
but still behave as data properties from within JavaScript. This means
when a value is passed to Object.defineProperty() on such a property,
it should update the internal value instead of redefinind the property
and destroying the shadowing.

R=rossberg@chromium.org
BUG=v8:1530
TEST=mjsunit/regress/regress-1530,test262/S15.3.3.1_A4

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10279 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/runtime.cc
test/mjsunit/regress/regress-1530.js [new file with mode: 0644]
test/test262/test262.status