From 8158fa114f57619b31f101bc8d0688a09c6218bb Mon Sep 17 00:00:00 2001 From: imperfect-circuits <114847048+imperfect-circuits@users.noreply.github.com> Date: Tue, 21 May 2024 14:20:52 +0930 Subject: [PATCH] fix(sandboxed): ensure DelayedError is checked in Sandboxed processors (#2567) fixes #2566 --- src/classes/worker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/worker.ts b/src/classes/worker.ts index af52791eeb..f3bce72c8a 100644 --- a/src/classes/worker.ts +++ b/src/classes/worker.ts @@ -760,7 +760,7 @@ will never work with more accuracy than 1ms. */ if ( err instanceof DelayedError || - err.message == 'DelayedError' || + err.name == 'DelayedError' || err instanceof WaitingChildrenError || err.name == 'WaitingChildrenError' ) {