-
-
Notifications
You must be signed in to change notification settings - Fork 208
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
Add Isolate.ThrowException(exception) support #90
Comments
Hey @robfig |
If you use the latest changes on master, then there is now a Function.NewInstance function that can be used to call a function as a constructor (e.g. like A workaround would be to execute some JS code to throw the exception (or define a function to do that). This code is on the slow path, so that may be acceptable. |
Thanks for amazing project! Very exciting to be able to use v8 so easily.
I'm providing my JS script an API implemented with a Go FunctionCallback. If an error occurs, how do I signal that to the caller? Throwing a JS error seems like the correct route, but I don't see any way to do that.
For example
Thank you
The text was updated successfully, but these errors were encountered: