Skip to content

Commit 6d85e41

Browse files
committed
Add workaround to fix runtime error for Go 1.21+
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.
1 parent 81aabee commit 6d85e41

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

site/lib/wasm_exec.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,9 @@
553553
},
554554
},
555555
};
556+
// Workaround to support Go 1.21+.
557+
// See https://github.com/golang/go/issues/38248.
558+
this.importObject.gojs = this.importObject.go;
556559
}
557560

558561
async run(instance) {

0 commit comments

Comments
 (0)