mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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:
committed by
Node.js GitHub Bot
parent
73a75c2ee6
commit
5d559f4a74
@@ -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(
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user