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 b384c8f7af518e49327b684776d3bc2f03e83d46..513022c708e29ba1e8c867b4c4708424549049f1 100644 |
--- a/pkg/dev_compiler/lib/js/es6/dart_sdk.js |
+++ b/pkg/dev_compiler/lib/js/es6/dart_sdk.js |
@@ -19107,7 +19107,7 @@ async._Future$ = dart.flattenFutures(dart.generic(T => { |
} |
timeout(timeLimit, opts) { |
let onTimeout = opts && 'onTimeout' in opts ? opts.onTimeout : null; |
- if (dart.test(this[_isComplete])) return new async._Future.immediate(this); |
+ if (dart.test(this[_isComplete])) return new (_FutureOfT()).immediate(this); |
let result = new (_FutureOfT())(); |
let timer = null; |
if (onTimeout == null) { |
@@ -27034,7 +27034,7 @@ collection.ListQueue$ = dart.generic(E => { |
static from(elements) { |
if (core.List.is(elements)) { |
let length = elements[dartx.length]; |
- let queue = new collection.ListQueue(dart.notNull(length) + 1); |
+ let queue = new (ListQueueOfE())(dart.notNull(length) + 1); |
dart.assert(dart.notNull(queue[_table][dartx.length]) > dart.notNull(length)); |
for (let i = 0; i < dart.notNull(length); i++) { |
queue[_table][dartx.set](i, E.as(elements[dartx.get](i))); |