Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Unified Diff: pkg/compiler/lib/src/resolution/members.dart

Issue 2576113002: fix assert with message (Closed)
Patch Set: remove --assert-message flag Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/options.dart ('k') | sdk/lib/_internal/js_runtime/lib/js_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/members.dart
diff --git a/pkg/compiler/lib/src/resolution/members.dart b/pkg/compiler/lib/src/resolution/members.dart
index abbf93f5d59d1e412a0092d9a45bf6f6e1ade961..e167b444b22213d65ecbb5f081d4473189571eb5 100644
--- a/pkg/compiler/lib/src/resolution/members.dart
+++ b/pkg/compiler/lib/src/resolution/members.dart
@@ -464,12 +464,6 @@ class ResolverVisitor extends MappingVisitor<ResolutionResult> {
}
ResolutionResult visitAssert(Assert node) {
- if (!options.enableAssertMessage) {
- if (node.hasMessage) {
- reporter.reportErrorMessage(
- node, MessageKind.EXPERIMENTAL_ASSERT_MESSAGE);
- }
- }
// TODO(sra): We could completely ignore the assert in production mode if we
// didn't need it to be resolved for type checking.
registry.registerFeature(
« no previous file with comments | « pkg/compiler/lib/src/options.dart ('k') | sdk/lib/_internal/js_runtime/lib/js_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698