node/test/message/assert_throws_stack.js
Antoine du Hamel ec26b1c01a
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-10-07 12:40:05 +00:00

7 lines
144 B
JavaScript

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