tools: add lint rule to ensure assertions are reached

PR-URL: https://github.com/nodejs/node/pull/60125
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
This commit is contained in:
Antoine du Hamel committed 2025-11-12 00:15:32 +01:00
1 parent daaaf04a32
commit 2a85aa4e7b
47 files changed
+458 -217

No files matched your search

+1
View File
@@ -11,6 +11,7 @@ function testFinalize(binding) {
x = null;
global.gc();
process.on('uncaughtException', (err) => {
// eslint-disable-next-line node-core/must-call-assert
assert.strictEqual(err.message, 'Error during Finalize');
});