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

src: change v8:ConstructorBehavior in stream_base-inl.h #23453

Closed
wants to merge 4 commits into from

Conversation

bmacnaughton
Copy link
Contributor

Throw if addMethod functions used as constructors.
Implemented TimothyGu) TODO: None of these should
have ConstructorBehavior::kAllow

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Throw if addMethod functions used as constructors.
@nodejs-github-bot nodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Oct 12, 2018
@gireeshpunathil gireeshpunathil added the code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events. label Oct 12, 2018
@addaleax
Copy link
Member

@bmacnaughton This PR is very similar to #23447 – that’s my fault. One of the tasks we handed out had text pointing to the same file, even though the heading pointed to another file (node_crypto.cc).

I’ll try to land both of these PRs together so you both get full credit, but just a heads up, if you have the test with the heading mentioning node_crypto.cc, feel free to also do that! Sorry again. :(

Throw an error if verify_error_getter_templ or
verify_error_getter_templ2 are used as constructors.
Copy link
Member

@addaleax addaleax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

@bmacnaughton
Copy link
Contributor Author

I made the changes to node_crypto.cc as you noticed but didn't really think they belonged in the same branch because the message was wrong. So I reverted them, created a new branch, then resubmitted them.

I'm sorry for the extra things to look at. I appreciate you taking a quick look on this.

@addaleax
Copy link
Member

@bmacnaughton Don’t worry, we can make any of this work the way you want to. :) I’ll just assign these PRs to myself so nothing goes wrong while landing them :)

@Trott
Copy link
Member

Trott commented Oct 14, 2018

@addaleax
Copy link
Member

Landed in 20b3698 and c19ab56, respectively – sorry again for the confusion!

@addaleax addaleax closed this Oct 14, 2018
addaleax pushed a commit that referenced this pull request Oct 14, 2018
Change ConstructorBehavior from kAllow to kThrow.

Co-authored-by: Bruce A. MacNaughton <bmacnaughton@gmail.com>
Refs: #23453
PR-URL: #23447
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
jasnell pushed a commit that referenced this pull request Oct 17, 2018
Change ConstructorBehavior from kAllow to kThrow.

Co-authored-by: Bruce A. MacNaughton <bmacnaughton@gmail.com>
Refs: #23453
PR-URL: #23447
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++. code-and-learn Issues related to the Code-and-Learn events and PRs submitted during the events.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants