mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:47:35 +00:00
LibJS: Fix byteOffset copy-paste error in TypedArray buffer test
This commit is contained in:
parent
c8db607c00
commit
275092bb03
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ test("basic functionality", () => {
|
||||||
if (!isBigIntArray) typedArray = new T([1, 2, 3]);
|
if (!isBigIntArray) typedArray = new T([1, 2, 3]);
|
||||||
else typedArray = new T([1n, 2n, 3n]);
|
else typedArray = new T([1n, 2n, 3n]);
|
||||||
|
|
||||||
expect(Object.hasOwn(typedArray, "byteOffset")).toBeFalse();
|
expect(Object.hasOwn(typedArray, "buffer")).toBeFalse();
|
||||||
|
|
||||||
const buffer = typedArray.buffer;
|
const buffer = typedArray.buffer;
|
||||||
expect(buffer).toBeInstanceOf(ArrayBuffer);
|
expect(buffer).toBeInstanceOf(ArrayBuffer);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue