mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
LibJS+LibWeb: Implement resizable ArrayBuffer support for TypedArray
This is (part of) a normative change in the ECMA-262 spec. See:
a9ae96e
This commit is contained in:
parent
c7fec9424c
commit
9258d7b98a
47 changed files with 2059 additions and 884 deletions
|
@ -11,7 +11,10 @@ describe("errors", () => {
|
|||
detachArrayBuffer(typedArray.buffer);
|
||||
|
||||
Atomics.notify(typedArray, 0, 0);
|
||||
}).toThrowWithMessage(TypeError, "ArrayBuffer is detached");
|
||||
}).toThrowWithMessage(
|
||||
TypeError,
|
||||
"TypedArray contains a property which references a value at an index not contained within its buffer's bounds"
|
||||
);
|
||||
});
|
||||
|
||||
test("invalid TypedArray type", () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue