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

Unified Diff: dart/lib/compiler/implementation/dart2js.dart

Issue 10228003: Address review comments from CL 10151014. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: typos Created 8 years, 8 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
« no previous file with comments | « no previous file | dart/tools/testing/dart/test_suite.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/dart2js.dart
diff --git a/dart/lib/compiler/implementation/dart2js.dart b/dart/lib/compiler/implementation/dart2js.dart
index facb3c357d11f1cb6f747163d98f0961f1a3b405..347b1bfdc15d5a65dcbb90a055ec09cd71ba0d70 100644
--- a/dart/lib/compiler/implementation/dart2js.dart
+++ b/dart/lib/compiler/implementation/dart2js.dart
@@ -40,7 +40,7 @@ void compile(List<String> argv) {
String path =
nativeToUriPath(argument.substring(argument.indexOf('=') + 1));
out = cwd.resolve(path);
- } else if (argument == '--allow-mock-compilation') {
+ } else if ('--allow-mock-compilation' == argument) {
options.add(argument);
} else if (argument.startsWith('-')) {
fail('Unknown option $argument.');
@@ -49,7 +49,7 @@ void compile(List<String> argv) {
}
}
if (arguments.isEmpty()) {
- fail('No files to compile.');
+ fail('No file to compile.');
}
if (arguments.length > 1) {
var extra = arguments.getRange(1, arguments.length - 1);
« no previous file with comments | « no previous file | dart/tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698