-
Notifications
You must be signed in to change notification settings - Fork 916
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
No error showed when error threw with --module
flag
#363
Comments
I confirm this error for a version 2024-01-13. After rolling back to version 2023-12-09 the errors started to appear. I am using the QuickJS API, not the CLI. When I call
But if I use the
Logging insertions into the script shows that execution flow aborted right at the point of the error. In version 2023-12-09 everything works with modules as expected. |
Does it work when you pass the JS_Eval result to JS_EvalFunction? And in turn pass that result to js_std_await? I didn't test with the code from this repo but in quickjs-ng it works as expected. |
a very minimal reproducible case:
|
The CLI won't exit with an error in async functions. We fixed that in NG: quickjs-ng/quickjs#514 |
QuickJS Version: 2024-01-13
When I execute
qjs ./examples/hello_module.js
, no error showedThe text was updated successfully, but these errors were encountered: