Index: pkg/front_end/messages.yaml |
diff --git a/pkg/front_end/messages.yaml b/pkg/front_end/messages.yaml |
index 135f3acbed92ff72a35a217adb75cd0d11b9e6d2..db1e55d5a56f4de197a4d29081d91f7c534617cb 100644 |
--- a/pkg/front_end/messages.yaml |
+++ b/pkg/front_end/messages.yaml |
@@ -398,3 +398,11 @@ TypeAfterVar: |
TypeRequired: |
template: "A type or modifier is required here." |
tip: "Try adding a type, 'var', 'const', or 'final'." |
+ |
+AssertExtraneousArgument: |
+ template: "`assert` can't have more than two arguments." |
+ dart2jsCode: FASTA_FATAL |
+ |
+AssertAsExpression: |
+ template: "`assert` can't be used as an expression." |
+ dart2jsCode: FASTA_FATAL |