Sign in
webkit
/
WebKit
/
6ac1ae7345a9a50f3760d4fdf5f8c6512c4a9901
/
.
/
JSTests
/
stress
/
zero-sized-array-buffer-pointer-should-be-signed-with-zero.js
blob: 5587d02062ce3417fbe117afba554b72b4025b73 [
file
] [
log
] [
blame
]
function
shouldBe
(
actual
,
expected
)
{
if
(
actual
!==
expected
)
throw
new
Error
(
'bad value: '
+
actual
);
}
var
typedArray
=
new
Int8Array
();
shouldBe
(
typedArray
.
length
,
0
);
var
subarray
=
typedArray
.
subarray
(
0
,
0
);
shouldBe
(
subarray
.
length
,
0
);