node-api: add support for Float16Array · nodejs/node@36ce6d6
@@ -41,8 +41,8 @@ assert.strictEqual(externalResult[2], 2);
4141// Validate creation of all kinds of TypedArrays
4242const buffer = new ArrayBuffer(128);
4343const arrayTypes = [ Int8Array, Uint8Array, Uint8ClampedArray, Int16Array,
44-Uint16Array, Int32Array, Uint32Array, Float32Array,
45-Float64Array, BigInt64Array, BigUint64Array ];
44+Uint16Array, Int32Array, Uint32Array, Float16Array,
45+Float32Array, Float64Array, BigInt64Array, BigUint64Array ];
46464747arrayTypes.forEach((currentType) => {
4848const template = Reflect.construct(currentType, buffer);
@@ -64,7 +64,7 @@ arrayTypes.forEach((currentType) => {
6464});
65656666const nonByteArrayTypes = [ Int16Array, Uint16Array, Int32Array, Uint32Array,
67-Float32Array, Float64Array,
67+Float16Array, Float32Array, Float64Array,
6868BigInt64Array, BigUint64Array ];
6969nonByteArrayTypes.forEach((currentType) => {
7070const template = Reflect.construct(currentType, buffer);