Don't use length property when bounds checking atomics functions
authorbinji <binji@chromium.org>
Tue, 14 Jul 2015 16:17:13 +0000 (09:17 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 14 Jul 2015 16:17:21 +0000 (16:17 +0000)
commita55fcc93ae8614095644007bba713a64048a864c
treedaaeaa4edba3ea1289445487e207993252d573c4
parent30b39f25fc00e8aaba13a7ef911201cd6cb3fe73
Don't use length property when bounds checking atomics functions

The length property can be monkey-patched, so use the native function instead.

R=jarin@chromium.org
BUG=

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

Cr-Commit-Position: refs/heads/master@{#29653}
src/harmony-atomics.js
test/mjsunit/harmony/atomics.js
test/mjsunit/regress/regress-crbug-501809.js