1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-23 18:55:08 +00:00

LibJS: Add Float{32,64}Array

This commit is contained in:
Linus Groh 2020-12-05 22:28:10 +00:00 committed by Andreas Kling
parent 4dcd23c2be
commit a70aacd7c3
6 changed files with 48 additions and 15 deletions

View file

@ -1,5 +1,14 @@
// Update when more typed arrays get added
const TYPED_ARRAYS = [Uint8Array, Uint16Array, Uint32Array, Int8Array, Int16Array, Int32Array];
const TYPED_ARRAYS = [
Uint8Array,
Uint16Array,
Uint32Array,
Int8Array,
Int16Array,
Int32Array,
Float32Array,
Float64Array,
];
test("basic functionality", () => {
expect(ArrayBuffer.isView).toHaveLength(1);