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

Unified Diff: samples/sample_extension/sample_asynchronous_extension.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: samples/sample_extension/sample_asynchronous_extension.dart
diff --git a/samples/sample_extension/sample_asynchronous_extension.dart b/samples/sample_extension/sample_asynchronous_extension.dart
index 190dee4e2da3d9ab9ab9a23579b911016c5339f5..41f2ea3feb979effacd744469c46d445e574e5e5 100644
--- a/samples/sample_extension/sample_asynchronous_extension.dart
+++ b/samples/sample_extension/sample_asynchronous_extension.dart
@@ -11,7 +11,7 @@ class RandomArray {
static SendPort _port;
void randomArray(int seed, int length, void callback(List result)) {
- var args = new List.fixedLength(2);
+ var args = new List(2);
args[0] = seed;
args[1] = length;
_servicePort.call(args).then((result) {

Powered by Google App Engine
This is Rietveld 408576698