From f203523b75377558db45c3ace4c4ed8621c6495d Mon Sep 17 00:00:00 2001 From: Shir Serlui <70711723+shirser121@users.noreply.github.com> Date: Sun, 15 Sep 2024 01:46:09 +0300 Subject: [PATCH] Allow access to the original error object (#3252) Co-authored-by: alechkos <93551621+alechkos@users.noreply.github.com> --- src/Client.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Client.js b/src/Client.js index f4a07d5..fd7eb55 100644 --- a/src/Client.js +++ b/src/Client.js @@ -323,6 +323,7 @@ class Client extends EventEmitter { // remove after 2.3000.x hard release await page.evaluateOnNewDocument(() => { const originalError = Error; + window.originalError = originalError; //eslint-disable-next-line no-global-assign Error = function (message) { const error = new originalError(message);