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

Unified Diff: lib/runtime/dart/_js_helper.js

Issue 1840713003: fix to run against latest analyzer (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 9 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:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698