Skip to content

Commit

Permalink
Revert "[Tests] handle a broken error cause in node 16.9/16.10"
Browse files Browse the repository at this point in the history
This reverts commit 8594f3b.
  • Loading branch information
ljharb committed Aug 16, 2022
1 parent 4a44a7e commit 23fac16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/throws.js
Expand Up @@ -62,7 +62,7 @@ tap.test('failures', function (tt) {
' expected: |-',
' [Function: TypeError]',
' actual: |-',
' { [RangeError: actual!] ' + ('cause' in Error.prototype ? '[cause]: undefined, ' : '') + "message: 'actual!' }",
" { [RangeError: actual!] message: 'actual!' }",
' at: Test.<anonymous> ($TEST/throws.js:$LINE:$COL)',
' stack: |-',
' RangeError: actual!',
Expand Down Expand Up @@ -103,7 +103,7 @@ tap.test('failures', function (tt) {
' expected: |-',
' \'/Second$/\'',
' actual: |-',
' { [Error: First] ' + ('cause' in Error.prototype ? '[cause]: undefined, ' : '') + 'message: \'First\' }',
' { [Error: First] message: \'First\' }',
' at: Test.<anonymous> ($TEST/throws.js:$LINE:$COL)',
' stack: |-',
' Error: First',
Expand Down

0 comments on commit 23fac16

Please sign in to comment.