diff options
author | 2023-08-21 23:39:41 -0700 | |
---|---|---|
committer | 2023-08-21 23:39:41 -0700 | |
commit | 44e4d5852a1c31e1d124828fa6417d3d1884cdb2 (patch) | |
tree | 0ca2110b909f466d4afda454357257c4c5e933f1 /src/js/node | |
parent | 3a45f2c71bb17fbad0168fa76b32ae0c8ee67935 (diff) | |
download | bun-44e4d5852a1c31e1d124828fa6417d3d1884cdb2.tar.gz bun-44e4d5852a1c31e1d124828fa6417d3d1884cdb2.tar.zst bun-44e4d5852a1c31e1d124828fa6417d3d1884cdb2.zip |
fix stdin stream unref and resuming (#4250)
* fix stream unref and resuming stream
* fix `child-process-stdio` test
Diffstat (limited to 'src/js/node')
-rw-r--r-- | src/js/node/readline.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/js/node/readline.js b/src/js/node/readline.js index 8d7d2627a..6b3cddd80 100644 --- a/src/js/node/readline.js +++ b/src/js/node/readline.js @@ -1608,11 +1608,12 @@ var _Interface = class Interface extends InterfaceConstructor { } [kSetRawMode](flag) { - const mode = flag ? 1 : 0; + const mode = flag + 0; const wasInRawMode = this.input.isRaw; - if (typeof this.input.setRawMode === "function") { - this.input.setRawMode(mode); + var setRawMode = this.input.setRawMode; + if (typeof setRawMode === "function") { + setRawMode.call(this.input, mode); } return wasInRawMode; |