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

Unified Diff: pkg/dev_compiler/lib/js/es6/dart_sdk.js

Issue 2653253002: Use microtasks in dart.async (Closed)
Patch Set: Mark test as skip Created 3 years, 11 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:
Download patch
« no previous file with comments | « pkg/dev_compiler/lib/js/common/dart_sdk.js ('k') | pkg/dev_compiler/lib/js/legacy/dart_sdk.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/lib/js/es6/dart_sdk.js
diff --git a/pkg/dev_compiler/lib/js/es6/dart_sdk.js b/pkg/dev_compiler/lib/js/es6/dart_sdk.js
index aea7b236084ce1b25b5aed0ec2e2dbc9314e0c3b..888f6794768181b81a4e9c418617311b86c03ab4 100644
--- a/pkg/dev_compiler/lib/js/es6/dart_sdk.js
+++ b/pkg/dev_compiler/lib/js/es6/dart_sdk.js
@@ -1904,7 +1904,7 @@ dart.async = function(gen, T, ...args) {
}
return future.then(dart.dynamic)(onValue, {onError: onError});
}
- return dart.getGenericClass(async.Future)(T).new(function() {
+ return dart.getGenericClass(async.Future)(T).microtask(function() {
iter = gen.apply(null, args)[Symbol.iterator]();
return onValue();
});
« no previous file with comments | « pkg/dev_compiler/lib/js/common/dart_sdk.js ('k') | pkg/dev_compiler/lib/js/legacy/dart_sdk.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698