Sign in
chromium
/
external
/
github.com
/
WebKit
/
webkit
/
refs/heads/main
/
.
/
JSTests
/
stress
/
shared-array-buffer-large-maxbytelength.js
blob: b0c3b5ae4d108908ce1f6012bfa56e485ee62b99 [
file
] [
log
] [
blame
] [
edit
]
const
MAX64
=
4294967296
+
1
;
// Okay to throw, but should not crash.
try
{
new
SharedArrayBuffer
(
4
,
{
maxByteLength
:
MAX64
});
}
catch
(
e
)
{
}
try
{
new
ArrayBuffer
(
4
,
{
maxByteLength
:
MAX64
});
}
catch
(
e
)
{
}