Skip to content

Commit

Permalink
fix Proxy this target
Browse files Browse the repository at this point in the history
  • Loading branch information
syumai committed Feb 11, 2024
1 parent bf3ab8e commit 484c7be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/workers-assets-gen/assets/wasm_exec_go.js
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@
if (prop === 'context') {
return context;
}
return Reflect.get(...arguments);
return Reflect.get(target, prop, target);
}
})
this._values = [ // JS values that Go currently has references to, indexed by reference id
Expand Down
2 changes: 1 addition & 1 deletion misc/wasm/wasm_exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@
if (prop === 'context') {
return context;
}
return Reflect.get(...arguments);
return Reflect.get(target, prop, target);
}
})
this._values = [ // JS values that Go currently has references to, indexed by reference id
Expand Down

0 comments on commit 484c7be

Please sign in to comment.