From aaf37639a7d48a84913545995046a1b474c9211b Mon Sep 17 00:00:00 2001 From: Aaron Greenberg Date: Wed, 30 Oct 2024 11:44:46 +0100 Subject: [PATCH] Fix problematic patching behavior --- src/signals/collectStacktrace.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/signals/collectStacktrace.ts b/src/signals/collectStacktrace.ts index 0188c4e..951e686 100644 --- a/src/signals/collectStacktrace.ts +++ b/src/signals/collectStacktrace.ts @@ -57,9 +57,6 @@ export const takeRecords = (function () { const originalFuncToString = Function.prototype.toString; const newFuncToString = function toString(this: unknown, ...args: unknown[]) { - if (isFunc(this)) { - return; - } const patchedRef = isFunc(this) ? origPatchMap.get(this) : false; const ref = this === newFuncToString ? originalFuncToString : patchedRef ? patchedRef : this; return originalFuncToString.apply(ref, args as []);