diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2024-04-24 05:54:19 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-23 22:54:19 +0200 |
commit | aff7a64544ee72069049a5429d625b10e4b390a6 (patch) | |
tree | 131db61489f64925daa49dcb6bdf645242e15f79 /ext/node/polyfills/internal/util | |
parent | ae62443ae037cf70eba3770699e82224d064229b (diff) |
fix: Float16Array support (#23512)
Ref #23490, #23277
* remove `--js-float16array` flag (This flag has already added to
deno_core)
* add some `Float16Array` support
Diffstat (limited to 'ext/node/polyfills/internal/util')
-rw-r--r-- | ext/node/polyfills/internal/util/types.ts | 4 |
1 files changed, 4 insertions, 0 deletions
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"; } |