Don't expose Array.prototype.values as it breaks webcompat
authoradamk@chromium.org <adamk@chromium.org>
Fri, 17 Oct 2014 20:11:47 +0000 (20:11 +0000)
committeradamk@chromium.org <adamk@chromium.org>
Fri, 17 Oct 2014 20:11:47 +0000 (20:11 +0000)
commit730c3fa3e04d475d6aeede13912ccb6a70ef0368
treeb32015b9f03e9a666c7b1a106beb8fe25e727308
parente3ad6930200b77bd2a9399eac025669ffa544870
Don't expose Array.prototype.values as it breaks webcompat

Some versions of Outlook Web Access test for the existence of a 'values'
property on Array instances, so adding the 'values' iterator to the prototype
(even with @@unscopeables) causes breakage.

This matches Gecko: they ship Array.prototype.{keys,entries} but not 'values'.

BUG=409858
LOG=Y
R=arv@chromium.org, danno@chromium.org

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

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24706 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/array-iterator.js
src/array.js
test/mjsunit/es6/arguments-iterator.js
test/mjsunit/es6/array-iterator.js
test/mjsunit/es6/typed-array-iterator.js