Closed
Description
Version
17.1.0
Platform
MacOS 12
Subsystem
No response
What steps will reproduce the bug?
performance.mark(1, { detail: /q/i }).detail; // => Uncaught Error: Unable to deserialize cloned data
performance.mark(1, { detail: Object('a') }).detail; // => Uncaught Error: Unable to deserialize cloned data
However, structuredClone
works fine here:
structuredClone(/q/i); // => /q/i
structuredClone(Object('a')); // => Object('a')
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior?
https://html.spec.whatwg.org/multipage/structured-data.html#structuredserializeinternal
https://html.spec.whatwg.org/multipage/structured-data.html#structureddeserialize
What do you see instead?
No response
Additional information
No response