]> git.saurik.com Git - apple/javascriptcore.git/blame - tests/stress/bug-131764.js
JavaScriptCore-7600.1.4.16.1.tar.gz
[apple/javascriptcore.git] / tests / stress / bug-131764.js
CommitLineData
81345200
A
1var result = 0;
2function test1(arr) {
3 return Array.of(...arr);
4}
5function test2() {
6 return Array(...arguments);
7}
8
9var result = 0;
10if (this.noInline) {
11 noInline(test1)
12 noInline(test2)
13}
14
15var array = [1,2,3,4,5];
16
17for (var i = 0; i < 10000; i++) {
18 result ^= test2(1,2,3,4,5,6,7).length;
19}
20
21if (result != 0)
22 throw "Error: bad result: " + result;