Fix bug in deletion of indexed properties
authormstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 15 Oct 2012 15:23:22 +0000 (15:23 +0000)
committermstarzinger@chromium.org <mstarzinger@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Mon, 15 Oct 2012 15:23:22 +0000 (15:23 +0000)
commit02490829dd943437c11cfbb73ecc39bab9174c1c
treee5dc729986d7a5a00cca67fd3496a685d9c4ca7c
parent86eedc26b568bdfbf039d25ef73fc6cc34c358be
Fix bug in deletion of indexed properties

The delete operator always return true in case of indexed property. It
should return false if an indexed property can't be deleted (eg.
DontDelete attribute is set or a string object is the holder).

Contributed by Peter Varga <pvarga@inf.u-szeged.hu>

BUG=none
TEST=mjsunit/delete-non-configurable

Review URL: https://codereview.chromium.org/11094021
Patch from Peter Varga <pvarga@inf.u-szeged.hu>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12736 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/elements.cc
src/objects.cc
test/mjsunit/delete-non-configurable.js [new file with mode: 0644]