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
I followed the wiki article on using web assembly: https://github.com/golang/go/wiki/WebAssembly. i to complete the "Getting Started" part with Go 1.12 when navigating with Chrome 71 to localhost:8080 it shows an error.
Upgrading to chrome 72 fixes the issue
What did you expect to see?
I expected it to work and show "Hello, WebAssembly" in the console.
What did you see instead?
When navigating to the localhost:8080 the developer console shows the following error:
(index):1 Uncaught (in promise) LinkError: WebAssembly Instantiation: Import #5 module="go" function="runtime.scheduleTimeoutEvent" error: function import requires a callable
Promise.then (async)
(anonymous) @ (index):7
The text was updated successfully, but these errors were encountered:
I would be surprised if a simple hello world does not work in Chrome 71 but works in Chrome 72. Are you sure this is not caused by an incorrect wasm_exec.js ?
Thank you for the quick response! That was my though also so i copied the wasm_exec again after installing go1.12: cp "$(go env GOROOT)/misc/wasm/wasm_exec.js" .. I'm now trying to revert back to 71 but it apparently pretty difficult...
I tried it again on my old version of Chrome and it now seems to work fine again, maybe the old wasm_exec.js was still loading from my browsers cache? Hard to say after the fact. Anyway, thank you for the quick response, i'll close this issue!
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
It works with go 1.11
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I followed the wiki article on using web assembly: https://github.com/golang/go/wiki/WebAssembly. i to complete the "Getting Started" part with Go 1.12 when navigating with Chrome 71 to localhost:8080 it shows an error.
Upgrading to chrome 72 fixes the issue
What did you expect to see?
I expected it to work and show "Hello, WebAssembly" in the console.
What did you see instead?
When navigating to the localhost:8080 the developer console shows the following error:
The text was updated successfully, but these errors were encountered: