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

Unified Diff: tests/compiler/dart2js/backend_dart/dart_printer_test.dart

Issue 1346093003: Revert "Add optional message to assert in Dart2js - continued" (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 months 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
Index: tests/compiler/dart2js/backend_dart/dart_printer_test.dart
diff --git a/tests/compiler/dart2js/backend_dart/dart_printer_test.dart b/tests/compiler/dart2js/backend_dart/dart_printer_test.dart
index f6fd38bea1bf4c881d072e54887f4b89b43e688b..801b75d1063d1f11d77c7ec2a556ec01cb067548 100644
--- a/tests/compiler/dart2js/backend_dart/dart_printer_test.dart
+++ b/tests/compiler/dart2js/backend_dart/dart_printer_test.dart
@@ -587,14 +587,9 @@ class AstBuilder extends Listener {
push(new ForIn(declaredIdentifier, exp, body));
}
- handleAssertStatement(Token assertKeyword,
- Token commaToken, Token semicolonToken) {
- Expression message;
- if (commaToken != null) message = pop();
+ handleAssertStatement(Token assertKeyword, Token semicolonToken) {
Expression exp = pop();
- var arguments = [exp];
- if (message != null) arguments.add(message);
- Expression call = new CallFunction(new Identifier("assert"), arguments);
+ Expression call = new CallFunction(new Identifier("assert"), [exp]);
push(new ExpressionStatement(call));
}
« no previous file with comments | « tests/compiler/dart2js/analyze_unused_dart2js_test.dart ('k') | tests/compiler/dart2js/js_backend_cps_ir.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698