bytecodealliance / bytecodealliance/javy

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

Open
#627 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
2.7k
Forks
135
Avg merge
1d 44m
Merged PRs (30d)
11

Description

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

## Problem

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

## Error Message and Context

Compiling and running:

```js
(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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.