-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Update changelog.md to mention new assert with message feature #28156
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
Conversation
@lrhn @floitschG can you review, please? |
* The `assert()` statement has been expanded to support an optional second | ||
`message` argument (SDK issue [27342](https://github.com/dart-lang/sdk/issues/27342)). | ||
|
||
The message is display if the assert fails. It can be any object, and it |
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.
displayed.
LGTM (with one typo). |
Thanks, typo fixed |
|
||
* The `assert()` statement has been expanded to support an optional second | ||
`message` argument (SDK issue [27342](https://github.com/dart-lang/sdk/issues/27342)). | ||
|
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.
Maybe use #24213 as the issue number.
'file:///Users/mit/tmp/tool/bin/main.dart': Failed assertion: line 9 pos 10: | ||
'configFile != null': Tool config missing. Please see https://goo.gl/k8iAi for details. | ||
#0 _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:33) | ||
#1 _AssertionError._throwNew (dart:core-patch/errors_patch.dart:29) |
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.
We should hide internal methods in the stack trace.
Fixes #28134