-
-
Notifications
You must be signed in to change notification settings - Fork 32.9k
Closed
Labels
perf_hooksIssues and PRs related to the implementation of the Performance Timing API.Issues and PRs related to the implementation of the Performance Timing API.
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
Metadata
Metadata
Assignees
Labels
perf_hooksIssues and PRs related to the implementation of the Performance Timing API.Issues and PRs related to the implementation of the Performance Timing API.