Sign in
webkit
/
WebKit
/
5c46bef7ab98d4e8242fd1cdbd4a8339e4d4801f
/
.
/
JSTests
/
stress
/
data-view-set-intrinsic-undefined-result-2.js
blob: 7adb36250b7e3d34d096a67192e5de1fecb2e957 [
file
] [
log
] [
blame
]
function
foo
(
view
)
{
return
view
.
setInt8
(
0
,
0
);
}
noInline
(
foo
);
let a
=
new
Int8Array
(
10
);
let dataView
=
new
DataView
(
a
.
buffer
);
for
(
let i
=
0
;
i
<
10000
;
++
i
)
{
if
(
foo
(
dataView
)
!==
undefined
)
throw
new
Error
(
"Bad!"
)
}