diff options
author | cjihrig <cjihrig@gmail.com> | 2018-08-23 10:20:12 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-08-29 12:28:51 -0400 |
commit | df073cdda4d9f3afb5ae7a5dd0bd153537b66181 (patch) | |
tree | 81e9886842ec2cd1aab4218d01c1d43c393864a6 /test/pseudo-tty/ref_keeps_node_running.js | |
parent | 1abbe0a2123e8333922894258389c2d5c1568472 (diff) | |
download | node-new-df073cdda4d9f3afb5ae7a5dd0bd153537b66181.tar.gz |
tty: make process.binding('tty_wrap') internal
PR-URL: https://github.com/nodejs/node/pull/22477
Refs: https://github.com/nodejs/node/issues/22160
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Diffstat (limited to 'test/pseudo-tty/ref_keeps_node_running.js')
-rw-r--r-- | test/pseudo-tty/ref_keeps_node_running.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/pseudo-tty/ref_keeps_node_running.js b/test/pseudo-tty/ref_keeps_node_running.js index 7832e9ee21..52761c140e 100644 --- a/test/pseudo-tty/ref_keeps_node_running.js +++ b/test/pseudo-tty/ref_keeps_node_running.js @@ -1,8 +1,10 @@ +// Flags: --expose-internals --no-warnings 'use strict'; require('../common'); -const { TTY, isTTY } = process.binding('tty_wrap'); +const { internalBinding } = require('internal/test/binding'); +const { TTY, isTTY } = internalBinding('tty_wrap'); const strictEqual = require('assert').strictEqual; strictEqual(isTTY(0), true, 'fd 0 is not a TTY'); |