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

Unified Diff: sdk/lib/_internal/compiler/implementation/mirrors/dart2js_mirror.dart

Issue 12401002: Make List.from and Iterable.toList default to not growable. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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: 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()));

Powered by Google App Engine
This is Rietveld 408576698