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
Hi!
While injecting a golang function into a js runtime how to throw an error js way within this function
e.g.
runtime:=goja.New()
runtime.Set("aFunc", func() {
// how to throw an error here
})
runtime.RunString(` try { aFunc() } catch (error) { // so that to be able to catch it over here } `)
Thx.
The text was updated successfully, but these errors were encountered:
Hi!
While injecting a golang function into a js runtime how to throw an error js way within this function
e.g.
Thx.
The text was updated successfully, but these errors were encountered: