diff options
author | Brian White <mscdex@mscdex.net> | 2017-04-24 02:21:01 -0400 |
---|---|---|
committer | Brian White <mscdex@mscdex.net> | 2017-04-30 03:17:43 -0400 |
commit | a641b7cf3e2bc0afa609a22306c0d5fb915da580 (patch) | |
tree | 923768a1be2881cf3571e6910828d84ef4c6b7d6 /lib | |
parent | 033ea9974f33859e2d394782b95aa00e403a389d (diff) | |
download | android-node-v8-a641b7cf3e2bc0afa609a22306c0d5fb915da580.tar.gz android-node-v8-a641b7cf3e2bc0afa609a22306c0d5fb915da580.tar.bz2 android-node-v8-a641b7cf3e2bc0afa609a22306c0d5fb915da580.zip |
process: fix permanent deoptimizations
PR-URL: https://github.com/nodejs/node/pull/12456
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/internal/process/stdio.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/internal/process/stdio.js b/lib/internal/process/stdio.js index b6c866e194..adfe1e8e0b 100644 --- a/lib/internal/process/stdio.js +++ b/lib/internal/process/stdio.js @@ -51,7 +51,7 @@ function setupStdio() { switch (tty_wrap.guessHandleType(fd)) { case 'TTY': - const tty = require('tty'); + var tty = require('tty'); stdin = new tty.ReadStream(fd, { highWaterMark: 0, readable: true, @@ -60,13 +60,13 @@ function setupStdio() { break; case 'FILE': - const fs = require('fs'); + var fs = require('fs'); stdin = new fs.ReadStream(null, { fd: fd, autoClose: false }); break; case 'PIPE': case 'TCP': - const net = require('net'); + var net = require('net'); // It could be that process has been started with an IPC channel // sitting on fd=0, in such case the pipe for this fd is already @@ -152,20 +152,20 @@ function createWritableStdioStream(fd) { switch (tty_wrap.guessHandleType(fd)) { case 'TTY': - const tty = require('tty'); + var tty = require('tty'); stream = new tty.WriteStream(fd); stream._type = 'tty'; break; case 'FILE': - const fs = require('internal/fs'); + var fs = require('internal/fs'); stream = new fs.SyncWriteStream(fd, { autoClose: false }); stream._type = 'fs'; break; case 'PIPE': case 'TCP': - const net = require('net'); + var net = require('net'); stream = new net.Socket({ fd: fd, readable: false, |