Skip to content

Structured cloning of transferable non-serializable objects should throw DOMException instead of TypeError #40841

Closed
@zloirock

Description

@zloirock

Version

17.1.0

Platform

MacOS 12

Subsystem

No response

What steps will reproduce the bug?

structuredClone(new MessageChannel().port1); // => `TypeError` instead of `DOMException`

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

What do you see instead?

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions