mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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:
47 files changed
+458
-217
No files matched your search
@@ -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');
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user