Sign in
webkit
/
WebKit
/
5c46bef7ab98d4e8242fd1cdbd4a8339e4d4801f
/
.
/
JSTests
/
stress
/
uint32array-unsigned-load.js
blob: 14c795949c0513677c3f3b6ebc6dce1b8043bfa3 [
file
] [
log
] [
blame
]
function
foo
(
a
)
{
return
a
[
0
]
+
1
;
}
noInline
(
foo
);
var
a
=
new
Uint32Array
(
1
);
a
[
0
]
=
-
1
;
for
(
var
i
=
0
;
i
<
10000
;
++
i
)
{
var
result
=
foo
(
a
);
if
(
result
!=
4294967296
)
throw
"Error: bad result: "
+
result
;
}