From aff7a64544ee72069049a5429d625b10e4b390a6 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Wed, 24 Apr 2024 05:54:19 +0900 Subject: fix: Float16Array support (#23512) Ref #23490, #23277 * remove `--js-float16array` flag (This flag has already added to deno_core) * add some `Float16Array` support --- ext/node/polyfills/internal/util/types.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/node/polyfills/internal/util') diff --git a/ext/node/polyfills/internal/util/types.ts b/ext/node/polyfills/internal/util/types.ts index 30a25e2e5..b8aca5968 100644 --- a/ext/node/polyfills/internal/util/types.ts +++ b/ext/node/polyfills/internal/util/types.ts @@ -58,6 +58,10 @@ export function isBigUint64Array(value: unknown): value is BigUint64Array { return TypedArrayPrototypeGetSymbolToStringTag(value) === "BigUint64Array"; } +export function isFloat16Array(value: unknown): value is Float16Array { + return TypedArrayPrototypeGetSymbolToStringTag(value) === "Float16Array"; +} + export function isFloat32Array(value: unknown): value is Float32Array { return TypedArrayPrototypeGetSymbolToStringTag(value) === "Float32Array"; } -- cgit v1.2.3