test: enable no-empty ESLint rule

PR-URL: https://github.com/nodejs/node/pull/41831
Refs: https://eslint.org/docs/rules/no-empty
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
Rich Trott
2022-02-02 22:35:32 -08:00
committed by Node.js GitHub Bot
parent 73a75c2ee6
commit 5d559f4a74
46 changed files with 206 additions and 132 deletions

View File

@@ -8,8 +8,9 @@ const test_fatal = require(`./build/${common.buildType}/test_fatal`);
// that crashes the process.
if (process.argv[2] === 'child') {
test_fatal.TestThread();
// Busy loop to allow the work thread to abort.
while (true) {}
while (true) {
// Busy loop to allow the work thread to abort.
}
}
const p = child_process.spawnSync(

View File

@@ -16,7 +16,7 @@ if (common.buildType === 'Debug')
if (process.argv[2] === 'child') {
test_fatal.TestThread();
// Busy loop to allow the work thread to abort.
while (true) {}
while (true);
}
tmpdir.refresh();