diff --git a/lib/wasm/wasm_exec.js b/lib/wasm/wasm_exec.js index d71af9e97e8ca9..2eb1b9d194ceed 100644 --- a/lib/wasm/wasm_exec.js +++ b/lib/wasm/wasm_exec.js @@ -565,7 +565,7 @@ _makeFuncWrapper(id) { const go = this; return function () { - const event = { id: id, this: this, args: arguments }; + const event = { id: id, this: go, args: arguments }; go._pendingEvent = event; go._resume(); return event.result;