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

@@ -7,7 +7,7 @@
// and symbol types, while in newer versions they can be created for
// any value type.
//
const { buildType } = require('../../common');
const { mustCall, buildType } = require('../../common');
const { gcUntil } = require('../../common/gc');
const assert = require('assert');
const addon_v8 = require(`./build/${buildType}/test_reference_obj_only`);
@@ -122,4 +122,4 @@ async function runAllTests() {
await runTests(addon_new, /* isVersion8 */ false, /* isLocalSymbol */ false);
}
runAllTests();
runAllTests().then(mustCall());