Skip to content

Commit 9cfec12

Browse files
committed
test: change call to deprecated util.isError()
1 parent 20dae2a commit 9cfec12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-tty-stdout-end.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ try {
99
process.stdout.end();
1010
} catch (e) {
1111
exceptionCaught = true;
12-
assert.ok(common.isError(e));
12+
assert.ok(e instanceof Error);
1313
assert.equal('process.stdout cannot be closed.', e.message);
1414
}
1515

0 commit comments

Comments
 (0)