Skip to content

Commit

Permalink
[Tests] handle a broken error cause in node 16.9/16.10
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 24, 2022
1 parent a09133e commit ca1b906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/throws.js
Expand Up @@ -169,7 +169,7 @@ tap.test('failures', function (tt) {
' expected: |-',
' [Function: TypeError]',
' actual: |-',
" { [RangeError: actual!] message: 'actual!' }",
' { [RangeError: actual!] ' + ('cause' in Error.prototype ? '[cause]: undefined, ' : '') + "message: 'actual!' }",
' at: Test.<anonymous> ($TEST/throws.js:$LINE:$COL)',
' stack: |-',
' RangeError: actual!',
Expand Down

0 comments on commit ca1b906

Please sign in to comment.