From f3b73e24cfb370d62f8e7e4f03f970bd583a115a Mon Sep 17 00:00:00 2001 From: ywave620 <60539365+ywave620@users.noreply.github.com> Date: Sat, 3 Dec 2022 11:26:56 +0800 Subject: [PATCH] process,worker: ensure code after exit() effectless remove unused error Co-authored-by: Antoine du Hamel --- .../parallel/test-worker-voluntarily-exit-followed-by-throw.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/parallel/test-worker-voluntarily-exit-followed-by-throw.js b/test/parallel/test-worker-voluntarily-exit-followed-by-throw.js index 92c4d5596cbddf..759f32d4bc9014 100644 --- a/test/parallel/test-worker-voluntarily-exit-followed-by-throw.js +++ b/test/parallel/test-worker-voluntarily-exit-followed-by-throw.js @@ -16,8 +16,7 @@ if (isMainThread) { try { process.exit(); throw new Error('xxx'); - // eslint-disable-next-line no-unused-vars - } catch (err) { + } catch { workerData[0] = 1; } }