Skip to content

Commit 544bd16

Browse files
committed
fixup! tty: validate file descriptor to avoid int32 overflow
1 parent a37d2cf commit 544bd16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/pseudo-tty/test-tty-isatty.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ strictEqual(isatty(2), true, 'stderr reported to not be a tty, but it is');
1010

1111
strictEqual(isatty(-1), false, '-1 reported to be a tty, but it is not');
1212
strictEqual(isatty(55555), false, '55555 reported to be a tty, but it is not');
13-
strictEqual(isatty(2**31), false, '2^31 reported to be a tty, but it is not');
13+
strictEqual(isatty(2 ** 31), false, '2^31 reported to be a tty, but it is not');
1414
strictEqual(isatty(1.1), false, '1.1 reported to be a tty, but it is not');
1515
strictEqual(isatty('1'), false, '\'1\' reported to be a tty, but it is not');
1616
strictEqual(isatty({}), false, '{} reported to be a tty, but it is not');

0 commit comments

Comments
 (0)