Skip to content
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

console: fix class inheritance regression #20158

Closed

Conversation

apapirovski
Copy link
Contributor

@apapirovski apapirovski commented Apr 19, 2018

Due to a return statement combined with new inside the function, extending Console class does not work when passing in just the stdout arg. This PR fixes it and needs to land for 10.0.0.

Fixes: #20157

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Due to a return statement with new inside the function, extending
Console class does not work when passing in just the stdout arg.
@apapirovski apapirovski added the console Issues and PRs related to the console subsystem. label Apr 19, 2018
@apapirovski apapirovski added this to the 10.0.0 milestone Apr 19, 2018
@apapirovski apapirovski requested review from jasnell and addaleax April 19, 2018 22:39
@nodejs-github-bot nodejs-github-bot added the console Issues and PRs related to the console subsystem. label Apr 19, 2018
@apapirovski
Copy link
Contributor Author

@apapirovski apapirovski added the fast-track PRs that do not need to wait for 48 hours to land. label Apr 19, 2018
@apapirovski
Copy link
Contributor Author

Please 👍 this if you approve the fast-track.

@apapirovski
Copy link
Contributor Author

Landed in 700344e

@apapirovski apapirovski deleted the fix-console-10-regression branch April 20, 2018 10:06
@apapirovski
Copy link
Contributor Author

apapirovski commented Apr 20, 2018

@jasnell this will need to be pulled into 10.0.0

apapirovski added a commit that referenced this pull request Apr 20, 2018
Due to a return statement with new inside the function, extending
Console class does not work when passing in just the stdout arg.

PR-URL: #20158
Fixes: #20157
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
jasnell pushed a commit that referenced this pull request Apr 20, 2018
Due to a return statement with new inside the function, extending
Console class does not work when passing in just the stdout arg.

PR-URL: #20158
Fixes: #20157
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
console Issues and PRs related to the console subsystem. fast-track PRs that do not need to wait for 48 hours to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot extend Console in node 10 rc.0
7 participants