Skip to content

Commit f3b73e2

Browse files
ywave620aduh95
andauthored
process,worker: ensure code after exit() effectless
remove unused error Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent ad562e1 commit f3b73e2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/parallel/test-worker-voluntarily-exit-followed-by-throw.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ if (isMainThread) {
1616
try {
1717
process.exit();
1818
throw new Error('xxx');
19-
// eslint-disable-next-line no-unused-vars
20-
} catch (err) {
19+
} catch {
2120
workerData[0] = 1;
2221
}
2322
}

0 commit comments

Comments
 (0)