Skip to content

allow "Throw ..." as sugar for "Return ThrowCompletion(...)" #3680

@michaelficarra

Description

@michaelficarra

Personally this notation would seem really intuitive. It looks like we already have 5 cases in the spec that could use it and #3655 will be introducing another 4. This comes up any time an error object is created in a separate step from where it's thrown, which happens whenever you need to do cleanup or augment the error, or whenever the error is provided by another AO.

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