mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
LibJS: Make a TypedArray test actually run on all different types
This commit is contained in:
parent
80f23abd0a
commit
66d07a452f
Notes:
sideshowbarker
2024-07-17 05:12:28 +09:00
Author: https://github.com/davidot Commit: https://github.com/SerenityOS/serenity/commit/66d07a452f Pull-request: https://github.com/SerenityOS/serenity/pull/15377 Issue: https://github.com/SerenityOS/serenity/issues/14691 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/AtkinsSJ Reviewed-by: https://github.com/linusg
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ test("TypedArray is abstract", () => {
|
|||
|
||||
TYPED_ARRAYS.forEach(T => {
|
||||
test(`all numeric indices are valid on ${T.name}`, () => {
|
||||
const newTypedArray = new Float32Array([1, 2, 3, 4, 5, 6, 7, 8, 9, 0]);
|
||||
const newTypedArray = new T([1, 2, 3, 4, 5, 6, 7, 8, 9, 0]);
|
||||
expect(newTypedArray).toHaveLength(10);
|
||||
|
||||
function PoisonError() {}
|
||||
|
|
Loading…
Add table
Reference in a new issue