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

Unified Diff: pkg/args/lib/args.dart

Issue 12328104: Change new List(n) to return fixed length list. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge to head. 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: pkg/args/lib/args.dart
diff --git a/pkg/args/lib/args.dart b/pkg/args/lib/args.dart
index 29da1e262b840885b6d87c41474eec6aa6f0d418..7760a99f53edff164670dba4b5b3ad96dd0d4511 100644
--- a/pkg/args/lib/args.dart
+++ b/pkg/args/lib/args.dart
@@ -307,7 +307,7 @@ class ArgParser {
* flags and options defined by this parser, and returns the result.
*/
ArgResults parse(List<String> args) =>
- new Parser(null, this, args.toList()).parse();
+ new Parser(null, this, args.toList(growable: true)).parse();
/**
* Generates a string displaying usage information for the defined options.

Powered by Google App Engine
This is Rietveld 408576698