Builtins that should not rely on iteration do.
authorkeith_miller@apple.com <keith_miller@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Feb 2016 19:43:01 +0000 (19:43 +0000)
committerkeith_miller@apple.com <keith_miller@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 22 Feb 2016 19:43:01 +0000 (19:43 +0000)
commitb873000807075b7e8b02733df19fce19f9fd8012
tree528e85cf897eac3af095755d2a203d5c2fe39fb0
parentd54d0d2e64893956c88b5a1f545e4e3076b028ea
Builtins that should not rely on iteration do.
https://bugs.webkit.org/show_bug.cgi?id=154475

Reviewed by Geoffrey Garen.

When changing the behavior of varargs calls to use ES6 iterators the
call builtin function's use of a varargs call was overlooked. The use
of iterators is observable outside the scope of the the call function,
thus it must be reimplemented.

* builtins/FunctionPrototype.js:
(call):
* tests/stress/call-apply-builtin-functions-dont-use-iterators.js: Added.
(test):
(addAll):
(catch):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@196949 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/builtins/FunctionPrototype.js
Source/JavaScriptCore/tests/stress/call-apply-builtin-functions-dont-use-iterators.js [new file with mode: 0644]