X-Git-Url: https://git.saurik.com/apple/javascriptcore.git/blobdiff_plain/4be4e30906bcb8ee30b4d189205cb70bad6707ce..81345200c95645a1b0d2635520f96ad55dfde63f:/tests/stress/array-pop-double.js diff --git a/tests/stress/array-pop-double.js b/tests/stress/array-pop-double.js new file mode 100644 index 0000000..69c36c5 --- /dev/null +++ b/tests/stress/array-pop-double.js @@ -0,0 +1,11 @@ +function foo(array) { + return [array.pop(), array.pop(), array.pop(), array.pop()]; +} + +noInline(foo); + +for (var i = 0; i < 100000; ++i) { + var result = foo([1.5, 2.5, 3.5]); + if (result.toString() != "3.5,2.5,1.5,") + throw "Error: bad result: " + result; +}