From 232fadd796087bbcbc4dd080cf12b42bf53b71ce Mon Sep 17 00:00:00 2001 From: AAGaming Date: Fri, 5 Jun 2026 22:29:11 -0400 Subject: fixes for june 2026 beta errorboundary (#916) Co-authored-by: Beebles <102569435+beebls@users.noreply.github.com> --- frontend/src/errorboundary-hook.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'frontend/src/errorboundary-hook.tsx') diff --git a/frontend/src/errorboundary-hook.tsx b/frontend/src/errorboundary-hook.tsx index 2c69a267..70aa2188 100644 --- a/frontend/src/errorboundary-hook.tsx +++ b/frontend/src/errorboundary-hook.tsx @@ -24,7 +24,7 @@ class ErrorBoundaryHook extends Logger { window.__ERRORBOUNDARY_HOOK_INSTANCE = this; // valve writes only the sanest of code - const exp = /^\(\)=>\(.\|\|.\(new .\),.\)$/; + const exp = /^\(\)=>\(.\|\|(?:.\(|\(.=)new .\),.\)$/; const initErrorReportingStore = findModuleExport( (e) => typeof e == 'function' && e?.toString && exp.test(e.toString()), ); -- cgit v1.2.3