Skip to content

Commit

Permalink
Add workaround to fix runtime error for Go 1.21+
Browse files Browse the repository at this point in the history
This regression is caused by golang/go#38248,
which somewhat makes sense since `wasm_exec.js` was never a stable API,
but it's really annoying for us.
  • Loading branch information
diamondburned committed Nov 8, 2023
1 parent 81aabee commit 6d85e41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions site/lib/wasm_exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,9 @@
},
},
};
// Workaround to support Go 1.21+.
// See https://github.com/golang/go/issues/38248.
this.importObject.gojs = this.importObject.go;
}

async run(instance) {
Expand Down

0 comments on commit 6d85e41

Please sign in to comment.