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(); |
}); |