Index: lib/src/codegen/js_codegen.dart |
diff --git a/lib/src/codegen/js_codegen.dart b/lib/src/codegen/js_codegen.dart |
index cd4b5c9b812a71288b821e696a00ae6110152b5a..d2315addefdae4b37a8c0eea0d026cde538bd8cb 100644 |
--- a/lib/src/codegen/js_codegen.dart |
+++ b/lib/src/codegen/js_codegen.dart |
@@ -3206,7 +3206,7 @@ class JSCodegenVisitor extends GeneralizingAstVisitor |
.computeLibraryElement(context.sourceFactory.forUri('dart:async')); |
var T = node.loopVariable.element.type; |
var StreamIterator_T = |
- dart_async.getType('StreamIterator').type.substitute4([T]); |
+ dart_async.getType('StreamIterator').type.instantiate([T]); |
var createStreamIter = _emitInstanceCreationExpression( |
StreamIterator_T.element.unnamedConstructor, |