syscall/js: nanotime and walltime not compatible with wasm_exec.js #35205
Labels
arch-wasm
WebAssembly issues
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Build a minimum program for WASM
main.go
index.html
wasm.js
wasm_exec.js
from latest master:
https://github.com/golang/go/blob/master/misc/wasm/wasm_exec.js
build command:
What did you expect to see?
No errors on the webpage/console.
Hello world!
in the bodyWhat did you see instead?
Error in console:
After fixing by renaming in wasm_exec.js:
Source of the issue seems to be in this commit:
4af3c17
I'm not sure what was the goal here, but something was done wrong. The
wasm_exec.js
file is not compatible now.The text was updated successfully, but these errors were encountered: