[V8] Fix bug in deletion of indexed properties v5.0.0-beta2
authormstarzinger@chromium.org <mstarzinger@chromium.org>
Mon, 15 Oct 2012 15:23:22 +0000 (15:23 +0000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 18 Oct 2012 14:23:26 +0000 (16:23 +0200)
commit4cbcad7fbb5606e6f183062b5f15be08b9568ecb
tree96d32bbe8e673100680b421310e0d78203b31b5e
parentadb6125097d6e73650d4eea0e4447a4001a0766c
[V8] 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: https://v8.googlecode.com/svn/branches/bleeding_edge@12736 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

Change-Id: I05bcd4625c5a2b868306e6979ea3c687a404dbf2
Signed-off-by: Peter Varga <pvarga@inf.u-szeged.hu>
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/3rdparty/v8/src/elements.cc
src/3rdparty/v8/src/objects.cc
src/3rdparty/v8/test/mjsunit/delete-non-configurable.js [new file with mode: 0644]