mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibJS: Add TypedArray.BYTES_PER_ELEMENT
This commit is contained in:
parent
bb6bc70c5b
commit
ddaab598a7
Notes:
sideshowbarker
2024-07-19 01:06:11 +09:00
Author: https://github.com/linusg
Commit: ddaab598a7
Pull-request: https://github.com/SerenityOS/serenity/pull/4304
3 changed files with 10 additions and 0 deletions
|
@ -0,0 +1,8 @@
|
|||
test("basic functionality", () => {
|
||||
expect(Uint8Array.BYTES_PER_ELEMENT).toBe(1);
|
||||
expect(Uint16Array.BYTES_PER_ELEMENT).toBe(2);
|
||||
expect(Uint32Array.BYTES_PER_ELEMENT).toBe(4);
|
||||
expect(Int8Array.BYTES_PER_ELEMENT).toBe(1);
|
||||
expect(Int16Array.BYTES_PER_ELEMENT).toBe(2);
|
||||
expect(Int32Array.BYTES_PER_ELEMENT).toBe(4);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue