-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Conversation
Throw if addMethod functions used as constructors.
@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 ( 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 |
Throw an error if verify_error_getter_templ or verify_error_getter_templ2 are used as constructors.
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.
Great, thanks!
This reverts commit f8087e6.
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. |
@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 :) |
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>
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>
Throw if addMethod functions used as constructors.
Implemented TimothyGu) TODO: None of these should
have ConstructorBehavior::kAllow
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes