Skip to content

Errors in async top-level functions do not result in traps #627

@jeffcharles

Description

@jeffcharles

Operating system: MacOS 14.4.1 (Sanoma)
Processor architecture: Apple M3
Rust version: 1.77.1
Javy version: f270956

Problem

Errors in async functions do not result in error messages or traps.

Error Message and Context

Compiling and running:

(async function() {
    adfasdfsa;
})();

should throw a syntax error and trap. Right now it exits successfully with no error messages.

This does not require the experimental_event_loop feature to be enabled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions