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

Unified Diff: lib/runtime/dart/async.js

Issue 1093353004: fix list initializers (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: baselines Created 5 years, 8 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
« no previous file with comments | « lib/runtime/dart/_js_helper.js ('k') | lib/runtime/dart/collection.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/async.js
diff --git a/lib/runtime/dart/async.js b/lib/runtime/dart/async.js
index c362e82ba403e245b33eb70885922846e7c08fd2..15bf2596ad81c5f980b3efee9a4c7268351f6e0c 100644
--- a/lib/runtime/dart/async.js
+++ b/lib/runtime/dart/async.js
@@ -444,7 +444,7 @@ var async;
return future;
}
toList() {
- let result = new core.List$(T).from([]);
+ let result = dart.setType([], core.List$(T));
let future = new (_Future$(core.List$(T)))();
this.listen(data => {
result[core.$add](data);
@@ -1803,7 +1803,7 @@ var async;
}, {onError: handleError});
}
if (remaining == 0) {
- return new Future$(core.List).value(/* Unimplemented const */new core.List.from([]));
+ return new Future$(core.List).value(/* Unimplemented const */[]);
}
values = new core.List(remaining);
return result;
« no previous file with comments | « lib/runtime/dart/_js_helper.js ('k') | lib/runtime/dart/collection.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698