Skip to content

Commit 23fac16

Browse files
committed
Revert "[Tests] handle a broken error cause in node 16.9/16.10"
This reverts commit 8594f3b.
1 parent 4a44a7e commit 23fac16

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/throws.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ tap.test('failures', function (tt) {
6262
' expected: |-',
6363
' [Function: TypeError]',
6464
' actual: |-',
65-
' { [RangeError: actual!] ' + ('cause' in Error.prototype ? '[cause]: undefined, ' : '') + "message: 'actual!' }",
65+
" { [RangeError: actual!] message: 'actual!' }",
6666
' at: Test.<anonymous> ($TEST/throws.js:$LINE:$COL)',
6767
' stack: |-',
6868
' RangeError: actual!',
@@ -103,7 +103,7 @@ tap.test('failures', function (tt) {
103103
' expected: |-',
104104
' \'/Second$/\'',
105105
' actual: |-',
106-
' { [Error: First] ' + ('cause' in Error.prototype ? '[cause]: undefined, ' : '') + 'message: \'First\' }',
106+
' { [Error: First] message: \'First\' }',
107107
' at: Test.<anonymous> ($TEST/throws.js:$LINE:$COL)',
108108
' stack: |-',
109109
' Error: First',

0 commit comments

Comments
 (0)