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

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

Issue 1048863003: Handle for-in loops (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | lib/runtime/dart/_isolate_helper.js » ('j') | test/checker/inferred_type_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_interceptors.js
diff --git a/lib/runtime/dart/_interceptors.js b/lib/runtime/dart/_interceptors.js
index a57f1342d03af83ff691c0d03e339dd306c7686a..bf9881bc82233e36721ab88123263fef99796d3a 100644
--- a/lib/runtime/dart/_interceptors.js
+++ b/lib/runtime/dart/_interceptors.js
@@ -857,8 +857,8 @@ var _interceptors;
let start = 0;
let length = 1;
for (let match of pattern.allMatches(this)) {
- let matchStart = dart.as(dart.dload(match, 'start'), core.int);
- let matchEnd = dart.as(dart.dload(match, 'end'), core.int);
+ let matchStart = match.start;
+ let matchEnd = match.end;
length = dart.notNull(matchEnd) - dart.notNull(matchStart);
if (length === 0 && start === matchStart) {
continue;
« no previous file with comments | « no previous file | lib/runtime/dart/_isolate_helper.js » ('j') | test/checker/inferred_type_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698