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

Regression bug when exception is thrown #58

Closed
bhelx opened this issue Mar 23, 2024 · 1 comment
Closed

Regression bug when exception is thrown #58

bhelx opened this issue Mar 23, 2024 · 1 comment

Comments

@bhelx
Copy link
Contributor

bhelx commented Mar 23, 2024

There seems to be a regression around the core engine handling exceptions. Given this test program:

function greet() {
  throw new Error('hello')
}

module.exports = { greet }

Output is:

2024/03/23 09:33:11 No runtime detected
2024/03/23 09:33:11 Calling function : greet
Error: wasm error: unreachable
wasm stack trace:
	.$1151(i32,i32,i32,i32,i32,i32)
	.$1290(i32,i32)
	.$1309(i32,i32,i32,i32,i32)
	.$1357(i32) i32
	.$1374() i32

We should see the exception

@bhelx
Copy link
Contributor Author

bhelx commented Mar 23, 2024

Should be fixed in #57

@bhelx bhelx closed this as completed Mar 23, 2024
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

1 participant