node/test/message/assert_throws_stack.js
Antoine du Hamel 2a85aa4e7b
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>
2025-11-12 00:15:32 +01:00

6 lines
144 B
JavaScript

'use strict';
require('../common');
const assert = require('assert/strict');
assert.throws(() => { throw new Error('foo'); }, { bar: true });