Skip to content

Is there a way to access the error variable in catch statement? #566

@zxch3n

Description

@zxch3n

For example, I may need to print the error information.

try {
	throw new Error();
} catch (e) {
	console.log(e.msg)
}

In the current design, however, I find no way to access the value of e.

Metadata

Metadata

Assignees

No one assigned

    Labels

    syntaxSuggestions to improve the syntax

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions