mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-05 01:42:54 +00:00
LibJS: Add Float{32,64}Array
This commit is contained in:
parent
4dcd23c2be
commit
a70aacd7c3
Notes:
sideshowbarker
2024-07-19 01:02:39 +09:00
Author: https://github.com/linusg
Commit: a70aacd7c3
Pull-request: https://github.com/SerenityOS/serenity/pull/4335
6 changed files with 48 additions and 15 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue