Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c808d78

Browse files
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)

AltStyle によって変換されたページ (->オリジナル) /