Skip to content

internal JSON clone algorithm has to raise "javascript error" if object's toJSON() method throws #1711

Open
@whimboo

Description

@whimboo

#849 implemented the feature to call toJSON() for internal JSON clone algorithm if it exists on an object. But as seen while working on #1709 it misses to catch errors potentially thrown by executing this method.

In such a situation the error as raised should be caught and re-thrown as javascript error.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions