diff options
author | Rich Trott <rtrott@gmail.com> | 2022-02-03 09:35:32 +0300 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2022-02-05 15:58:32 +0300 |
commit | 5d559f4a748fa85f67f50b23916a9ef6cf9260a1 (patch) | |
tree | 1d156014abfe5d6da640ea3fe6ef38a0eb32f83f /test/node-api/test_fatal | |
parent | 73a75c2ee63ea65709f63b71ade3b81a02b519fc (diff) |
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>
Diffstat (limited to 'test/node-api/test_fatal')
-rw-r--r-- | test/node-api/test_fatal/test_threads.js | 5 | ||||
-rw-r--r-- | test/node-api/test_fatal/test_threads_report.js | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/test/node-api/test_fatal/test_threads.js b/test/node-api/test_fatal/test_threads.js index fd56f60cbe8..8c306694f5e 100644 --- a/test/node-api/test_fatal/test_threads.js +++ b/test/node-api/test_fatal/test_threads.js @@ -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( diff --git a/test/node-api/test_fatal/test_threads_report.js b/test/node-api/test_fatal/test_threads_report.js index 83c6642bdc4..c2e635007db 100644 --- a/test/node-api/test_fatal/test_threads_report.js +++ b/test/node-api/test_fatal/test_threads_report.js @@ -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(); |