1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01:00

Use wrapped arguments in proxy function

Fixes #714
This commit is contained in:
kkapsner 2024-08-21 17:23:02 +02:00
parent e549267085
commit 5a1a318b91

View File

@ -205,6 +205,7 @@
const wrappedObject = scope.getWrapped(window).Object; const wrappedObject = scope.getWrapped(window).Object;
const handler = wrappedObject.create(null); const handler = wrappedObject.create(null);
handler.apply = scope.exportFunctionWithName(function(target, thisArg, args){ handler.apply = scope.exportFunctionWithName(function(target, thisArg, args){
args = scope.getWrapped(args);
try { try {
return args.length? return args.length?
replacement.call(thisArg, ...args): replacement.call(thisArg, ...args):