Skip to content

Commit b65c761

Browse files
authored
Update bin.ts
1 parent 41a0392 commit b65c761

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ function startRepl (service: Register, state: EvalState, code?: string) {
365365
prompt: '> ',
366366
input: process.stdin,
367367
output: process.stdout,
368+
// Mimicking node's REPL implementation: https://github.com/nodejs/node/blob/168b22ba073ee1cbf8d0bcb4ded7ff3099335d04/lib/internal/repl.js#L28-L30
368369
terminal: process.stdout.isTTY && !parseInt(process.env.NODE_NO_READLINE!, 10),
369370
eval: replEval,
370371
useGlobal: true

0 commit comments

Comments
 (0)