Index: sdk/lib/_internal/compiler/implementation/dart2js.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/dart2js.dart b/sdk/lib/_internal/compiler/implementation/dart2js.dart |
index 70d0bc772a2c3b8279faf5a12741b061fc4521a2..bc5be230e7739744c32e726ae03112ef07587d26 100644 |
--- a/sdk/lib/_internal/compiler/implementation/dart2js.dart |
+++ b/sdk/lib/_internal/compiler/implementation/dart2js.dart |
@@ -231,7 +231,7 @@ void compile(List<String> argv) { |
helpAndFail('Error: No Dart file specified.'); |
} |
if (arguments.length > 1) { |
- var extra = arguments.getRange(1, arguments.length - 1); |
+ var extra = arguments.sublist(1); |
helpAndFail('Error: Extra arguments: ${extra.join(" ")}'); |
} |