Sign in
webkit
/
WebKit
/
34f5efbbe2903324708c7d6f83220e30b3f6ddd8
/
.
/
JSTests
/
stress
/
detach-buffer-during-iteration.js
blob: 76d537922853c026543446d75e39155af16bebaf [
file
] [
log
] [
blame
]
function
test
()
{
var
ta
=
new
Uint16Array
(
3
);
try
{
for
(
var
n of ta
)
transferArrayBuffer
(
ta
.
buffer
);
}
catch
{
return
;
}
throw
'oh no'
;
}
noInline
(
test
);
for
(
var
i
=
0
;
i
<
1e4
;
i
++)
test
();