-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lib: repl for #14022 && readline fix debug warning #14494
Conversation
Did you test your code by |
lib/repl.js
Outdated
@@ -462,6 +462,12 @@ function REPLServer(prompt, | |||
self.bufferedCommand += cmd + '\n'; | |||
self.displayPrompt(); | |||
return; | |||
} else if (e && cmd.includes('\\')) { | |||
cmd = cmd.substring(0, cmd.length - 1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linter: missing semicolon.
lib/readline.js
Outdated
@@ -29,6 +29,7 @@ | |||
|
|||
const errors = require('internal/errors'); | |||
const { debug, inherits } = require('util'); | |||
const debug = debuglog |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Linter: Parsing error: Identifier 'debug' has already been declared
I update code, please review it |
Have you ever ran test on your local computer? I think you'll get lint error while you running it. |
lib/readline.js
Outdated
@@ -28,7 +28,8 @@ | |||
'use strict'; | |||
|
|||
const errors = require('internal/errors'); | |||
const { debug, inherits } = require('util'); | |||
const { debuglog, inherits } = require('util'); | |||
const debug = debuglog; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also not the way debuglog
is supposed to be used.
@XadillaX X Yes, I did. |
@robbinhan These are some fairly unrelated changes. Can you split this PR for easier reviewing (one for |
@TimothyGu OK |
try to fix for #14022
multiline arrow function expressions
need input