Skip to content

Structured cloning implementation from performance.mark is incomplete #40840

Description

@zloirock

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    perf_hooksIssues and PRs related to the perf_hooks module and performance measurement APIs.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions