1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:07:46 +00:00

LibJS: Fix byteOffset copy-paste error in TypedArray buffer test

This commit is contained in:
Luke 2021-07-06 02:28:44 +01:00 committed by Linus Groh
parent c8db607c00
commit 275092bb03

View file

@ -20,7 +20,7 @@ test("basic functionality", () => {
if (!isBigIntArray) typedArray = new T([1, 2, 3]);
else typedArray = new T([1n, 2n, 3n]);
expect(Object.hasOwn(typedArray, "byteOffset")).toBeFalse();
expect(Object.hasOwn(typedArray, "buffer")).toBeFalse();
const buffer = typedArray.buffer;
expect(buffer).toBeInstanceOf(ArrayBuffer);