Skip to content

Commit ca1b906

Browse files
committed
[Tests] handle a broken error cause in node 16.9/16.10
1 parent a09133e commit ca1b906

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/throws.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ tap.test('failures', function (tt) {
169169
' expected: |-',
170170
' [Function: TypeError]',
171171
' actual: |-',
172-
" { [RangeError: actual!] message: 'actual!' }",
172+
' { [RangeError: actual!] ' + ('cause' in Error.prototype ? '[cause]: undefined, ' : '') + "message: 'actual!' }",
173173
' at: Test.<anonymous> ($TEST/throws.js:$LINE:$COL)',
174174
' stack: |-',
175175
' RangeError: actual!',

0 commit comments

Comments
 (0)