summaryrefslogtreecommitdiff
path: root/ext/web/02_structured_clone.js
diff options
context:
space:
mode:
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;