From b0d3b20f2319ad346fe70b1114f492f852689435 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 23 Apr 2024 16:18:27 +0100 Subject: feat: enable Float16Array support (#23490) Closes https://github.com/denoland/deno/issues/23450 --- ext/web/02_structured_clone.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext/web') diff --git a/ext/web/02_structured_clone.js b/ext/web/02_structured_clone.js index 0b8df4ac2..84829c313 100644 --- a/ext/web/02_structured_clone.js +++ b/ext/web/02_structured_clone.js @@ -36,6 +36,7 @@ const { Uint16Array, Uint32Array, BigUint64Array, + Float16Array, Float32Array, Float64Array, } = primordials; @@ -115,6 +116,9 @@ function structuredClone(value) { case "BigUint64Array": Constructor = BigUint64Array; break; + case "Float16Array": + Constructor = Float16Array; + break; case "Float32Array": Constructor = Float32Array; break; -- cgit v1.2.3