Index: lib/runtime/dart/_js_helper.js |
diff --git a/lib/runtime/dart/_js_helper.js b/lib/runtime/dart/_js_helper.js |
index b5433e79d5339ab5cc1644c228f3f35cde7148de..beda02eaaa1ec8cf2a9537ee560d9a45470014f3 100644 |
--- a/lib/runtime/dart/_js_helper.js |
+++ b/lib/runtime/dart/_js_helper.js |
@@ -423,7 +423,8 @@ dart_library.library('dart/_js_helper', null, /* Imports */[ |
} |
let buffer = new core.StringBuffer(); |
let startIndex = 0; |
- for (let match of dart.as(dart.dsend(pattern, 'allMatches', receiver), core.Iterable$(core.Match))) { |
+ for (let match of dart.as(dart.dsend(pattern, 'allMatches', receiver), core.Iterable)) { |
+ dart.as(match, core.Match); |
buffer.write(dart.dcall(onNonMatch, dart.dsend(receiver, 'substring', startIndex, match.start))); |
buffer.write(dart.dcall(onMatch, match)); |
startIndex = match.end; |