فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
test(A04): preserve Window receiver for native setTimeout to avoid Illegal invocation
davoodmehraban89 committed
Oct 16, 2026 at 19:09 UTC
70d2275784eb66b6e6634b213ee7bfbce8e444b5
1 file changed
+1
-1
tests/windows-vm-encrypted-company-backup-browser.js
+1
-1
@@ -54,7 +54,7 @@
54
// This keeps the evaluation context alive for the required assertions.
55
window.setTimeout = (fn, delay, ...args) => {
56
if (delay === 1500 && String(fn).includes('location.reload')) return 0;
57
- return original.timeout(fn, delay, ...args);
57
+ return original.timeout.call(window, fn, delay, ...args);
58
};
59
60
await window.SettingsView.downloadBackup();