Fix bugs 992 and 1083
authorpeterhal@chromium.org <peterhal@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 1 Feb 2011 17:08:14 +0000 (17:08 +0000)
committerpeterhal@chromium.org <peterhal@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 1 Feb 2011 17:08:14 +0000 (17:08 +0000)
commit9c89aa6dd902e2f40f505d2d1525b0d95035cd54
tree92b631c7b8ce47b04405b4803b7ad57124f2cfe4
parenta453a3ce651c9b7d74e475cbc541da062454062f
Fix bugs 992 and 1083

Fixes JS portion of DefineOwnProperty when there is
an existing property and the new descriptor is generic.

Makes code follow spec steps more closely.

Fixes typo for check for unchanged enumerable in step 6.

Adds regression tests.
Fixes errors in object-define-property test

Don't normalize the JSGlobalProxy. Gets webkit http/tests/security/xss-DENIED-defineProperty.html working.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6561 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/objects.cc
src/runtime.cc
src/v8natives.js
test/mjsunit/object-define-property.js
test/mjsunit/regress/regress-1083.js [new file with mode: 0644]
test/mjsunit/regress/regress-992.js [new file with mode: 0644]