]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/array-pop-double.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / array-pop-double.js
CommitLineData
81345200
A
1function foo(array) {
2 return [array.pop(), array.pop(), array.pop(), array.pop()];
3}
4
5noInline(foo);
6
7for (var i = 0; i < 100000; ++i) {
8 var result = foo([1.5, 2.5, 3.5]);
9 if (result.toString() != "3.5,2.5,1.5,")
10 throw "Error: bad result: " + result;
11}