-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
Fix issue 18946: assert message can throw hijacking the assert failure #8673
Conversation
|
Thanks for your pull request and interest in making D better, @thewilsonator! We are looking forward to reviewing it, and you should be hearing from a maintainer soon.
Please see CONTRIBUTING.md for more information. If you have addressed all reviews or aren't sure how to proceed, don't hesitate to ping us with a simple comment. Bugzilla references
Testing this PR locallyIf you don't have a local development environment setup, you can use Digger to test this PR: dub fetch digger
dub run digger -- build "master + dmd#8673" |
|
When submitting a PR, please provide a title which allow us to see what it's about from the notification. |
|
I am not sure the linked issue is valid. In the end, your exception happens last, and that's what gets reported. If the function was to |
|
Instead of throwingFunc replace that with a call to format or the like, which one might reasonably expect to catch a |
|
@thewilsonator : Exactly. But forcing people to put |
|
Hmm, perhaps this is not the correct way to fix this. It would be better to wrap the message evaluation in a try catch. |
|
Yeah, that would be much better |
|
If you don't mind, I'm going to close this for the time being since this approach won't work. |
I presume the protocol is to deprecate this first.