Widen definition of %HasComplexElements() to include non-enumerability
authoradamk@chromium.org <adamk@chromium.org>
Fri, 24 Oct 2014 18:04:03 +0000 (18:04 +0000)
committeradamk@chromium.org <adamk@chromium.org>
Fri, 24 Oct 2014 18:04:13 +0000 (18:04 +0000)
commit02d37b8f10a7ef3a4caf6fd18e9e7b29ef61568d
tree82606e1efe21c437cff1b0daa394a4e7f87da898
parent878ff91c8faed9a1ad88c6fae2623ac716d78075
Widen definition of %HasComplexElements() to include non-enumerability

This avoids using the Sparse methods on objects with non-enumerable elements,
which can cause the 'enumerable: false' bit to get lost in the operation.

R=mstarzinger@chromium.org

Review URL: https://codereview.chromium.org/672323003

Cr-Commit-Position: refs/heads/master@{#24883}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24883 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/objects.cc
src/objects.h
test/mjsunit/regress/regress-shift-enumerable.js [new file with mode: 0644]