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

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

Issue 1649583002: allow JS builtin to be typed as needed (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 11 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/html.js
diff --git a/lib/runtime/dart/html.js b/lib/runtime/dart/html.js
index 3889a09e134d3a22df4471a9076daeaf328a6726..2694494cdf1ef7c6ee607fc6b4b43f7c56b5f78e 100644
--- a/lib/runtime/dart/html.js
+++ b/lib/runtime/dart/html.js
@@ -10065,13 +10065,13 @@ dart_library.library('dart/html', null, /* Imports */[
return dart.as(wrap_jso(e.raw.classList), DomTokenList);
}
static _classListLength(list) {
- return dart.as(list.raw.length, core.int);
+ return list.raw.length;
}
static _classListContains(list, value) {
- return dart.as(list.raw.contains(value), core.bool);
+ return list.raw.contains(value);
}
static _classListContainsBeforeAddOrRemove(list, value) {
- return dart.as(list.raw.contains(value), core.bool);
+ return list.raw.contains(value);
}
static _classListAdd(list, value) {
list.raw.add(value);

Powered by Google App Engine
This is Rietveld 408576698