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