Skip to content

Commit 66d07a4

Browse files
davidotlinusg
authored andcommitted
LibJS: Make a TypedArray test actually run on all different types
1 parent 80f23ab commit 66d07a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Userland/Libraries/LibJS/Tests/builtins/TypedArray/TypedArray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ test("TypedArray is abstract", () => {
276276

277277
TYPED_ARRAYS.forEach(T => {
278278
test(`all numeric indices are valid on ${T.name}`, () => {
279-
const newTypedArray = new Float32Array([1, 2, 3, 4, 5, 6, 7, 8, 9, 0]);
279+
const newTypedArray = new T([1, 2, 3, 4, 5, 6, 7, 8, 9, 0]);
280280
expect(newTypedArray).toHaveLength(10);
281281

282282
function PoisonError() {}

0 commit comments

Comments
 (0)