1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-11-10 15:18:52 +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 handler = wrappedObject.create(null);
handler.apply = scope.exportFunctionWithName(function(target, thisArg, args){
args = scope.getWrapped(args);
try {
return args.length?
replacement.call(thisArg, ...args):