Skip to content

Commit 97f8037

Browse files
LiviaMedeirostargos
authored andcommitted
test: add Float16Array to common.getArrayBufferViews()
PR-URL: #58233 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Chemi Atlow <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent a135c0a commit 97f8037

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

test/common/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,7 @@ function getArrayBufferViews(buf) {
703703
Uint16Array,
704704
Int32Array,
705705
Uint32Array,
706+
Float16Array,
706707
Float32Array,
707708
Float64Array,
708709
BigInt64Array,

test/parallel/test-stream-typedarray.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const views = common.getArrayBufferViews(buffer);
6363
assert.strictEqual(chunk.encoding, 'buffer');
6464
res += chunk.chunk;
6565
}
66-
assert.strictEqual(res, 'ABCD'.repeat(9));
66+
assert.strictEqual(res, 'ABCD'.repeat(views.length));
6767
}),
6868

6969
});

0 commit comments

Comments
 (0)