blob: a8f2cad1179716069cdab1ecaae1067747f500b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// |jit-test| allow-oom; skip-if: (getBuildConfiguration("tsan"))
let buffer = new ArrayBuffer(0);
let result = null;
try {
result = buffer.transfer(2 ** 32);
} catch {
// Intentionally ignore allocation failure.
}
// If the allocation succeeded, |result| has the correct size.
if (result) {
assertEq(result.byteLength, 2 ** 32);
}
|