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

Unified Diff: tools/testing/dart/test_suite.dart

Issue 2879153005: Add support to dart2js for option --enable-asserts. (Closed)
Patch Set: Formatting Created 3 years, 7 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: tools/testing/dart/test_suite.dart
diff --git a/tools/testing/dart/test_suite.dart b/tools/testing/dart/test_suite.dart
index cc741897fe91378f46760f33885c3947e0848713..4d4765eeada38acaa87fcb29570596fa76a8490e 100644
--- a/tools/testing/dart/test_suite.dart
+++ b/tools/testing/dart/test_suite.dart
@@ -2028,6 +2028,10 @@ class TestUtils {
if (compiler == "dart2js" && configuration["fast_startup"]) {
args.add("--fast-startup");
}
+ if ((compiler == "dart2js" || compiler == "none") &&
+ configuration["enable_asserts"]) {
+ args.add("--enable-asserts");
+ }
if (compiler == "dart2js" && configuration["dart2js_with_kernel"]) {
args.add("--use-kernel");
}
« tests/corelib/list_removeat_test.dart ('K') | « tools/testing/dart/test_options.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698