]> git.saurik.com Git - apple/javascriptcore.git/blob - tests/stress/uint32array-unsigned-load.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / uint32array-unsigned-load.js
1 function foo(a) {
2 return a[0] + 1;
3 }
4
5 noInline(foo);
6
7 var a = new Uint32Array(1);
8 a[0] = -1;
9
10 for (var i = 0; i < 10000; ++i) {
11 var result = foo(a);
12 if (result != 4294967296)
13 throw "Error: bad result: " + result;
14 }
15