-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Debugger fix #1835
base: master
Are you sure you want to change the base?
Debugger fix #1835
Conversation
… Console transport
@@ -30,7 +31,13 @@ module.exports = class Console extends TransportStream { | |||
this.name = options.name || 'console'; | |||
this.stderrLevels = this._stringArrayToSet(options.stderrLevels); | |||
this.consoleWarnLevels = this._stringArrayToSet(options.consoleWarnLevels); | |||
this.eol = options.eol || os.EOL; |
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.
I think you might need to either change the behavior of the eol tests that're failing to skip eol, or reimplement the eol for windows compat?
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.
Yes, it seems that Windows is using some non-standard line ending?
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.
Yes - windows uses \r\n
instead of \n
for new line, thus broke the test above
Fixes #1544, and does so more reliably than #1798 , even with overridden console, or individual console methods