You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exceptions thrown during the initialization of a global or module are not caught. This means exceptions thrown at this point will be missing the exception message.
How to replicate
Running this
LLRT_NET_DENY=/ ./llrt -e 'console.log("123")'
Outputs
Error: Exception
But it should output
ReferenceError: LLRT_NET_DENY env contains an invalid URI
How to fix
This is where the exceptions should probably be caught:
HI @richarddavison and @georgesmith46 , If there is no additional discussion, I would like to submit a PR to resolve this issue, if that is okay?
If you are already working on this issue, please let me know so I can work on another issue.
Exceptions thrown during the initialization of a global or module are not caught. This means exceptions thrown at this point will be missing the exception message.
How to replicate
Running this
Outputs
But it should output
How to fix
This is where the exceptions should probably be caught:
llrt/llrt_core/src/vm.rs
Line 426 in 9e21153
Example of catching an exception:
llrt/llrt_core/src/vm.rs
Line 448 in 9e21153
The text was updated successfully, but these errors were encountered: