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

Unified Diff: tests/compiler/dart2js/class_codegen2_test.dart

Issue 11312203: "Reverting 14829-14832" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | « tests/compiler/dart2js/boolified_operator_test.dart ('k') | tests/compiler/dart2js/class_order_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/class_codegen2_test.dart
diff --git a/tests/compiler/dart2js/class_codegen2_test.dart b/tests/compiler/dart2js/class_codegen2_test.dart
index 730a59a3983e2e173400a9c9147943b9bf0f21ae..91b6b97f731ba25179817afd23dea4d8bbcda694 100644
--- a/tests/compiler/dart2js/class_codegen2_test.dart
+++ b/tests/compiler/dart2js/class_codegen2_test.dart
@@ -85,7 +85,7 @@ main() {
main() {
// At some point Dart2js generated bad object literals with dangling commas:
// { a: true, }. Make sure this doesn't happen again.
- RegExp danglingComma = new RegExp(r',[ \n]*}');
+ RegExp danglingComma = const RegExp(r',[ \n]*}');
String generated = compileAll(TEST_ONE);
Expect.isFalse(danglingComma.hasMatch(generated));
« no previous file with comments | « tests/compiler/dart2js/boolified_operator_test.dart ('k') | tests/compiler/dart2js/class_order_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698