summaryrefslogtreecommitdiff
path: root/lib/tty.js
diff options
context:
space:
mode:
authorAntoine du Hamel <duhamelantoine1995@gmail.com>2023-02-12 19:26:21 +0100
committerAntoine du Hamel <duhamelantoine1995@gmail.com>2023-02-28 12:10:24 +0100
commit9dbb1623ffd6e06b5df0c74beaf3f4ee0a17c8e5 (patch)
treeb73d08b62cbe9310ff9b677e639a18b3b5a0afc6 /lib/tty.js
parent1101713cc2dd20a141781083aa385c1294df6708 (diff)
downloadnode-new-9dbb1623ffd6e06b5df0c74beaf3f4ee0a17c8e5.tar.gz
lib: add trailing commas to all public core modules
PR-URL: https://github.com/nodejs/node/pull/46848 Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Anatoli Papirovski <apapirovski@mac.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Diffstat (limited to 'lib/tty.js')
-rw-r--r--lib/tty.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tty.js b/lib/tty.js
index 3796c99cba..fb0319f93e 100644
--- a/lib/tty.js
+++ b/lib/tty.js
@@ -33,7 +33,7 @@ const errors = require('internal/errors');
const { ERR_INVALID_FD, ERR_TTY_INIT_FAILED } = errors.codes;
const {
getColorDepth,
- hasColors
+ hasColors,
} = require('internal/tty');
// Lazy loaded for startup performance.
@@ -60,7 +60,7 @@ function ReadStream(fd, options) {
readableHighWaterMark: 0,
handle: tty,
manualStart: true,
- ...options
+ ...options,
});
this.isRaw = false;
@@ -96,7 +96,7 @@ function WriteStream(fd) {
net.Socket.call(this, {
readableHighWaterMark: 0,
handle: tty,
- manualStart: true
+ manualStart: true,
});
// Prevents interleaved or dropped stdout/stderr output for terminals.