Skip to content

Commit c808d78

Browse files
authored
Use the correctly captured this argument
1 parent 8282b72 commit c808d78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/wasm/wasm_exec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@
565565
_makeFuncWrapper(id) {
566566
const go = this;
567567
return function () {
568-
const event = { id: id, this: this, args: arguments };
568+
const event = { id: id, this: go, args: arguments };
569569
go._pendingEvent = event;
570570
go._resume();
571571
return event.result;

0 commit comments

Comments
 (0)