console: minor console refactoring#17707
Closed
BridgeAR wants to merge 6 commits intonodejs:masterfrom
Closed
Conversation
Calling write could throw a maximum call stack size error. To make sure this is not specific to a single engine (version), lazily populate the correct error message by producing such a error on demand.
starkwang
reviewed
Dec 16, 2017
lib/console.js
Outdated
Contributor
There was a problem hiding this comment.
Using Boolean(ignoreErrors) might be more readable here.
bnoordhuis
reviewed
Dec 16, 2017
lib/console.js
Outdated
Member
There was a problem hiding this comment.
The spread operator, unlike .apply(), pushes the elements onto the stack. That is, it makes stack overflows more likely.
bc57bcb to
ce00d93
Compare
ce00d93 to
74755f0
Compare
Fix and refactor the console benchmark. It did not test console so it got renamed and mainly tests the different ways of passing arguments through.
This lists all function aliases directly below the declared function.
This should not be important anymore in newer docs. The change is also documented in the "changed" part of the function.
74755f0 to
2dc5813
Compare
Member
Author
|
Comments addressed. I removed the spread operator again and added a comment about it. |
lpinca
approved these changes
Dec 17, 2017
benchmark/misc/arguments.js
Outdated
| n: [1e6] | ||
| }); | ||
|
|
||
| const nullStream = createNullStream(); |
Member
There was a problem hiding this comment.
Unrelated but can't this be simplified to just new Writable({ write: () => {} })?
Member
Author
There was a problem hiding this comment.
I went ahead and removed the fake console overall as it had no real purpose in this benchmark.
jasnell
approved these changes
Dec 18, 2017
Member
Author
Member
Author
BridgeAR
added a commit
to BridgeAR/node
that referenced
this pull request
Dec 20, 2017
Calling write could throw a maximum call stack size error. To make sure this is not specific to a single engine (version), lazily populate the correct error message by producing such a error on demand. PR-URL: nodejs#17707 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
BridgeAR
added a commit
to BridgeAR/node
that referenced
this pull request
Dec 20, 2017
PR-URL: nodejs#17707 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
BridgeAR
added a commit
to BridgeAR/node
that referenced
this pull request
Dec 20, 2017
Fix and refactor the console benchmark. It did not test console so it got renamed and mainly tests the different ways of passing arguments through. PR-URL: nodejs#17707 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
BridgeAR
added a commit
to BridgeAR/node
that referenced
this pull request
Dec 20, 2017
This lists all function aliases directly below the declared function. PR-URL: nodejs#17707 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
BridgeAR
added a commit
to BridgeAR/node
that referenced
this pull request
Dec 20, 2017
This should not be important anymore in newer docs. The change is also documented in the "changed" part of the function. PR-URL: nodejs#17707 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins
pushed a commit
that referenced
this pull request
Jan 8, 2018
Calling write could throw a maximum call stack size error. To make sure this is not specific to a single engine (version), lazily populate the correct error message by producing such a error on demand. PR-URL: #17707 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins
pushed a commit
that referenced
this pull request
Jan 8, 2018
PR-URL: #17707 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins
pushed a commit
that referenced
this pull request
Jan 8, 2018
Fix and refactor the console benchmark. It did not test console so it got renamed and mainly tests the different ways of passing arguments through. PR-URL: #17707 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins
pushed a commit
that referenced
this pull request
Jan 8, 2018
This lists all function aliases directly below the declared function. PR-URL: #17707 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins
pushed a commit
that referenced
this pull request
Jan 8, 2018
This should not be important anymore in newer docs. The change is also documented in the "changed" part of the function. PR-URL: #17707 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins
pushed a commit
that referenced
this pull request
Jan 9, 2018
Calling write could throw a maximum call stack size error. To make sure this is not specific to a single engine (version), lazily populate the correct error message by producing such a error on demand. PR-URL: #17707 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins
pushed a commit
that referenced
this pull request
Jan 9, 2018
PR-URL: #17707 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins
pushed a commit
that referenced
this pull request
Jan 9, 2018
Fix and refactor the console benchmark. It did not test console so it got renamed and mainly tests the different ways of passing arguments through. PR-URL: #17707 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins
pushed a commit
that referenced
this pull request
Jan 9, 2018
This lists all function aliases directly below the declared function. PR-URL: #17707 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
MylesBorins
pushed a commit
that referenced
this pull request
Jan 9, 2018
This should not be important anymore in newer docs. The change is also documented in the "changed" part of the function. PR-URL: #17707 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Merged
Contributor
|
should this be backported to v6.x or v8.x? |
This comment has been minimized.
This comment has been minimized.
Contributor
|
@BridgeAR should this be backported? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some minor changes
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passesAffected core subsystem(s)
console, doc, benchmark