We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The code below compiles fine with tinygo but when running I get the following error:
(index):1 Uncaught (in promise) LinkError: WebAssembly Instantiation: Import #5 module="env" function="syscall/js.valueInvoke" error: function import requires a callable Promise.then (async) (anonymous) @ (index):45
js.Global().Get("window").Call("addEventListener", "beforeunload", js.NewEventCallback(0, func(event js.Value) { }))
The code compiles and runs without a problem when using the default go compiler
Edit : the error pops up when I isolate the js.NewEventCallback call ..so that is the culprit
The text was updated successfully, but these errors were encountered:
This has not yet been implemented, and will likely be implemented after #211.
Sorry, something went wrong.
Code for this has just landed in the dev branch with this PR #367
dev
Now losing, please reopen if needed. Thank you!
No branches or pull requests
The code below compiles fine with tinygo but when running I get the following error:
The code compiles and runs without a problem when using the default go compiler
Edit : the error pops up when I isolate the js.NewEventCallback call ..so that is the culprit
The text was updated successfully, but these errors were encountered: