Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

windows: Exceptions from asynchronous functions are not thrown correctly #566

Open
ahaoboy opened this issue Aug 31, 2024 · 1 comment
Open

Comments

@ahaoboy
Copy link
Contributor

ahaoboy commented Aug 31, 2024

Only synchronous exceptions are caught and displayed.
The following code fails to execute without any error message

async function main() {
  throw new Error()
}

main()
@richarddavison
Copy link
Contributor

This is currently a limitation in the QuickJS engine. We are able to capture unhandled promise rejections but that doesn't align with how it's handled in Node.js. We'll be working on a patch for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants