From 67471829452e82d77053a17ecd6ecc8248ff2d2a Mon Sep 17 00:00:00 2001 From: Pierre Tachoire Date: Wed, 11 Mar 2026 17:59:46 +0100 Subject: [PATCH] Add structuredClone() global function Next.js hydration requires structuredClone(), which was not implemented. Uses a JSON stringify/parse round-trip via V8 to deep-clone values, covering all JSON-serializable types (objects, arrays, primitives). --- src/browser/tests/window/window.html | 24 ++++++++++++++++++++++++ src/browser/webapi/Window.zig | 13 +++++++++++++ 2 files changed, 37 insertions(+) diff --git a/src/browser/tests/window/window.html b/src/browser/tests/window/window.html index 5506e327..03ae1061 100644 --- a/src/browser/tests/window/window.html +++ b/src/browser/tests/window/window.html @@ -115,6 +115,30 @@ } + +