Index: sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart |
diff --git a/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart b/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart |
index e9bae5e64fa4ae87dcc588fe4a6a74f034c58cda..86b266683f4efb3dd1d5b2bd6ad8e8d6053a186b 100644 |
--- a/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart |
+++ b/sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart |
@@ -278,13 +278,13 @@ class Dart2JsCompilation implements Compilation { |
} else { |
packageUri = libraryUri; |
} |
- opts = new List<String>.from(opts, growable: true); |
+ opts = new List<String>.from(opts); |
opts.add('--analyze-only'); |
opts.add('--analyze-all'); |
_compiler = new Compiler(provider.readStringFromUri, |
- null, |
- silentDiagnosticHandler, |
- libraryUri, packageUri, opts); |
+ null, |
+ silentDiagnosticHandler, |
+ libraryUri, packageUri, opts); |
var librariesUri = <Uri>[]; |
for (Path library in libraries) { |
librariesUri.add(cwd.resolve(library.toString())); |