0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 23:43:09 +01:00
nodejs/test/pseudo-tty/test-tty-stdin-call-end.js
Matteo Collina 9577946bed test: add process.stdin.end() TTY regression test
PR-URL: https://github.com/nodejs/node/pull/23051
Fixes: https://github.com/nodejs/node/issues/22814
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: George Adams <george.adams@uk.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-10-04 05:31:46 +02:00

9 lines
152 B
JavaScript

'use strict';
require('../common');
// This tests verifies that process.stdin.end() does not
// crash the process with ENOTCONN
process.stdin.end();