summaryrefslogtreecommitdiff
path: root/ext/web/02_structured_clone.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-04-23 16:18:27 +0100
committerGitHub <noreply@github.com>2024-04-23 15:18:27 +0000
commitb0d3b20f2319ad346fe70b1114f492f852689435 (patch)
tree913b962a727f8b9439a506a86150e5ee27417207 /ext/web/02_structured_clone.js
parent5236fd0dad3dd75ec1d650e74d36d4c6f1346e57 (diff)
feat: enable Float16Array support (#23490)
Closes https://github.com/denoland/deno/issues/23450
Diffstat (limited to 'ext/web/02_structured_clone.js')
-rw-r--r--ext/web/02_structured_clone.js4
1 files changed, 4 insertions, 0 deletions
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;