1node:assert:*
2      throw err;
3      ^
4
5AssertionError [ERR_ASSERTION]: Expected values to be strictly deep-equal:
6+ actual - expected
7
8+ Comparison {}
9- Comparison {
10-   bar: true
11- }
12    at Object.<anonymous> (*assert_throws_stack.js:*:*)
13    at *
14    at *
15    at *
16    at *
17    at *
18    at * {
19  generatedMessage: true,
20  code: 'ERR_ASSERTION',
21  actual: Error: foo
22      at assert.throws.bar (*assert_throws_stack.js:*)
23      at getActual (node:assert:*)
24      at Function.throws (node:assert:*)
25      at Object.<anonymous> (*assert_throws_stack.js:*:*)
26      at *
27      at *
28      at *
29      at *
30      at *
31      at *,
32  expected: { bar: true },
33  operator: 'throws'
34}
35
36Node.js *
37