mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 00:20:08 +01:00
test: add Float16Array to common.getArrayBufferViews()
PR-URL: https://github.com/nodejs/node/pull/58233 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
578a893f56
commit
f8809cef63
|
|
@ -703,6 +703,7 @@ function getArrayBufferViews(buf) {
|
|||
Uint16Array,
|
||||
Int32Array,
|
||||
Uint32Array,
|
||||
Float16Array,
|
||||
Float32Array,
|
||||
Float64Array,
|
||||
BigInt64Array,
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ const views = common.getArrayBufferViews(buffer);
|
|||
assert.strictEqual(chunk.encoding, 'buffer');
|
||||
res += chunk.chunk;
|
||||
}
|
||||
assert.strictEqual(res, 'ABCD'.repeat(9));
|
||||
assert.strictEqual(res, 'ABCD'.repeat(views.length));
|
||||
}),
|
||||
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user