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

Unified Diff: lib/runtime/dart/_js_names.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 | « lib/runtime/dart/_js_helper.js ('k') | lib/runtime/dart/collection.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/_js_names.js
diff --git a/lib/runtime/dart/_js_names.js b/lib/runtime/dart/_js_names.js
index 2152f827b68d5224e7229b57cbd646b65e64d7c0..1c6f4a7b7811e0450e8329e314f22a8853a02da1 100644
--- a/lib/runtime/dart/_js_names.js
+++ b/lib/runtime/dart/_js_names.js
@@ -26,7 +26,7 @@ var _js_names;
let getterPrefix = _foreign_helper.JS_GET_NAME('GETTER_PREFIX');
let getterPrefixLength = getterPrefix.length;
let setterPrefix = _foreign_helper.JS_GET_NAME('SETTER_PREFIX');
- for (let key of keys) {
+ for (let key of dart.as(keys, core.Iterable$(core.String))) {
let value = jsMangledNames[key];
result.set(key, value);
if (!dart.notNull(isGlobal)) {
« no previous file with comments | « lib/runtime/dart/_js_helper.js ('k') | lib/runtime/dart/collection.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698