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

Unified Diff: test/codegen_test.dart

Issue 1633003002: Add --modules=node support (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: reverted let->const parasite change Created 4 years, 11 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: test/codegen_test.dart
diff --git a/test/codegen_test.dart b/test/codegen_test.dart
index 537c9b30bb4347f4ca3ad3e2696316ffcb8e12b8..febd7a9ec6119343998c09de0a71c46b7fc2a6a4 100644
--- a/test/codegen_test.dart
+++ b/test/codegen_test.dart
@@ -153,7 +153,9 @@ $compilerMessages''';
var closure = filename == 'closure';
var moduleFormat = filename == 'es6_modules'
? ModuleFormat.es6
- : ModuleFormat.legacy;
+ : filename == 'node_modules'
+ ? ModuleFormat.node
+ : ModuleFormat.legacy;
var success;
// TODO(vsm): Is it okay to reuse the same context here? If there is
// overlap between test files, we may need separate ones for each

Powered by Google App Engine
This is Rietveld 408576698