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

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: Rebase 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') | no next file with comments »
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 75ff4d9e5d2ea2949bcdf12a3649e363e851550c..c410d949489914b237f3eb5d1f95ee31cca958fd 100644
--- a/lib/runtime/dart/_interceptors.js
+++ b/lib/runtime/dart/_interceptors.js
@@ -862,8 +862,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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698