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; } }