Skip to content

Structured cloning implementation from performance.mark is incomplete #40840

Closed

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

  1. targos commented on Nov 21, 2021

    @targos
    Member

    Fix in #40904

  2. added
    perf_hooks
    on Nov 21, 2021
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_hooks

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions