[es6] Fix invalid ToObject in String/Array iterator next.
authorbmeurer <bmeurer@chromium.org>
Wed, 2 Sep 2015 06:58:52 +0000 (23:58 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 2 Sep 2015 06:59:15 +0000 (06:59 +0000)
commit9427d3255b2eba784a6a61ea998b566ff7d07c4b
tree0e15853fc7a86fd81a75379e38bb7980b6c3a38e
parentfb44484ffddf461923ffc9390c1dff632e188ff4
[es6] Fix invalid ToObject in String/Array iterator next.

The spec says that the "this value" has to be an Object.

R=jarin@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#30533}
src/array-iterator.js
src/string-iterator.js