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

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

Issue 1112403004: SDK fixes (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Formatting fix Created 5 years, 8 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 be3814a2864546a7b5e54b0ec1bdb4594889f56f..3aac0ce8c52e22b450001366f2aa738607152026 100644
--- a/lib/runtime/dart/_js_helper.js
+++ b/lib/runtime/dart/_js_helper.js
@@ -51,7 +51,6 @@ var _js_helper;
return dart.as(this[_throwUnmodifiable](), V);
}
remove(key) {
- dart.as(key, K);
return dart.as(this[_throwUnmodifiable](), V);
}
clear() {
@@ -79,7 +78,6 @@ var _js_helper;
super._();
}
containsValue(needle) {
- dart.as(needle, V);
return this.values[core.$any](value => dart.equals(value, needle));
}
containsKey(key) {
@@ -169,10 +167,9 @@ var _js_helper;
let backingMap = new (collection.LinkedHashMap$(K, V))();
this.$map = fillLiteralMap(this[_jsData], backingMap);
}
- return this.$map;
+ return dart.as(this.$map, core.Map$(K, V));
}
containsValue(needle) {
- dart.as(needle, V);
return this[_getMap]().containsValue(needle);
}
containsKey(key) {

Powered by Google App Engine
This is Rietveld 408576698