-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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: add get/set pair for unhandled rejections mode #38915
Conversation
2a8cf56
to
92ce0be
Compare
92ce0be
to
c3f3fc7
Compare
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 meant to omit const
at the end of the setter's signature.
65ea8d0
to
71e0e8c
Compare
Can Electron modify the |
I'd be ok with this if a reasonable test can be added for it. |
@jasnell I would still argue that unused private APIs are things that should be removed from our source code, not added. |
Unused by whom? Electron would be using these. Perhaps finding a way of making them a part of the supported embedder API would be a better approach. |
Yes, exactly the point. |
I guess my first question would still be whether Electron can modify the In the long run, it would probably be nice if there was a generic way to get/set options through the embedder API?
I didn’t notice that PR, sorry – I’d revert it, tbh. I don’t think Electron gains anything from that change or from this one in its current state. |
Closing in favor of modifying the options object directly. |
This PR adds a get/set pair for unhandled rejections modes. Electron wishes to be able to set this from C++ and not just a cli flag which is the only option right now.