Sign in
cobalt
/
cobalt
/
71840339e1109efe930df5c60712d91cdcc962a8
/
.
/
src
/
third_party
/
mozjs-45
/
js
/
src
/
jit-test
/
tests
/
for-of
/
typedarrays-5.js
blob: 6ba70e121008f1efe40990d3e22e9a0526ece3f4 [
file
] [
log
] [
blame
]
// for-of throws if the target is an ArrayBuffer.
load
(
libdir
+
"asserts.js"
);
assertThrowsInstanceOf
(
function
()
{
for
(
var
v of
new
Int8Array
([
0
,
1
,
2
,
3
]).
buffer
)
throw
"FAIL"
;
},
TypeError
);