fix Proxy this target

This commit is contained in:
syumai 2024-02-11 19:29:49 +09:00
parent bf3ab8ec41
commit 484c7be891
2 changed files with 2 additions and 2 deletions

View File

@ -473,7 +473,7 @@
if (prop === 'context') { if (prop === 'context') {
return 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 this._values = [ // JS values that Go currently has references to, indexed by reference id

View File

@ -476,7 +476,7 @@
if (prop === 'context') { if (prop === 'context') {
return 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 this._values = [ // JS values that Go currently has references to, indexed by reference id