Also handle elements in *RealNamed* api methods
authorverwaest <verwaest@chromium.org>
Sat, 13 Jun 2015 11:16:00 +0000 (04:16 -0700)
committerCommit bot <commit-bot@chromium.org>
Sat, 13 Jun 2015 11:16:12 +0000 (11:16 +0000)
commit028025f07e26ee7f962ff0a1ab9362868e58bac9
tree8435e2326336ebc90e98a9902b9709d0d99bdfc7
parenta6bc7cd4e20cbb99c74c1c63cd502105dbc43de2
Also handle elements in *RealNamed* api methods

Apparently the *RealNamed* API methods only have named variants, but were always used by the embedder to find elements as well. We'd never find them though, since we wouldn't even look
there.

This CL ensures we check whether the name is actually an array index.

I guess for all named API functions we should assume they are used similar to o["name"] where name could also be a number... At least we should make it uniform between embedder and V8. This matches us up with their expectations for now...

BUG=v8:4137
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#29008}
src/api.cc
src/objects.cc