mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
cccddc59e5
The current stack trace thrown in case `assert.throws(fn, object)` is used did not filter the stack trace. This fixes it. PR-URL: https://github.com/nodejs/node/pull/18595 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
7 lines
144 B
JavaScript
7 lines
144 B
JavaScript
'use strict';
|
|
|
|
require('../common');
|
|
const assert = require('assert').strict;
|
|
|
|
assert.throws(() => { throw new Error('foo'); }, { bar: true });
|