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

4242

const buffer = new ArrayBuffer(128);

4343

const arrayTypes = [ Int8Array, Uint8Array, Uint8ClampedArray, Int16Array,

44-

Uint16Array, Int32Array, Uint32Array, Float32Array,

45-

Float64Array, BigInt64Array, BigUint64Array ];

44+

Uint16Array, Int32Array, Uint32Array, Float16Array,

45+

Float32Array, Float64Array, BigInt64Array, BigUint64Array ];

46464747

arrayTypes.forEach((currentType) => {

4848

const template = Reflect.construct(currentType, buffer);

@@ -64,7 +64,7 @@ arrayTypes.forEach((currentType) => {

6464

});

65656666

const nonByteArrayTypes = [ Int16Array, Uint16Array, Int32Array, Uint32Array,

67-

Float32Array, Float64Array,

67+

Float16Array, Float32Array, Float64Array,

6868

BigInt64Array, BigUint64Array ];

6969

nonByteArrayTypes.forEach((currentType) => {

7070

const template = Reflect.construct(currentType, buffer);