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

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

Issue 1160673003: fixes #202, check IndexExpression (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 7 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/collection.js
diff --git a/lib/runtime/dart/collection.js b/lib/runtime/dart/collection.js
index df4e3980b46cd3b87d342d29bf4aae0e5adc9059..15d4434848798f3995d528ad4681940bfc4ad21b 100644
--- a/lib/runtime/dart/collection.js
+++ b/lib/runtime/dart/collection.js
@@ -79,7 +79,7 @@ var math = dart.lazyImport(math);
static from(other) {
let result = HashMap$(K, V).new();
other.forEach(dart.fn((k, v) => {
- result.set(k, dart.as(v, V));
+ result.set(dart.as(k, K), dart.as(v, V));
}));
return result;
}
@@ -1218,7 +1218,7 @@ var math = dart.lazyImport(math);
static from(other) {
let result = LinkedHashMap$(K, V).new();
other.forEach(dart.fn((k, v) => {
- result.set(k, dart.as(v, V));
+ result.set(dart.as(k, K), dart.as(v, V));
Jennifer Messerly 2015/06/02 23:29:47 pretty neat how these just got figured out automag
}));
return result;
}
@@ -3324,7 +3324,7 @@ var math = dart.lazyImport(math);
isValidKey = null;
let result = new (SplayTreeMap$(K, V))();
other.forEach(dart.fn((k, v) => {
- result.set(k, dart.as(v, V));
+ result.set(dart.as(k, K), dart.as(v, V));
}));
return result;
}

Powered by Google App Engine
This is Rietveld 408576698