Skip to content

Structured cloning implementation from performance.mark is incomplete #40840

@zloirock

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    perf_hooksIssues and PRs related to the implementation of the Performance Timing API.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions