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

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

Issue 1757343002: upgrade to latest analyzer (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 10 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/_debugger.js ('k') | lib/runtime/dart/_internal.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 bb2c84e7e7dfbb647c2a982ac66872373c63f127..bed09a30fbdb678e2c24801f60ebe4b7014ff50f 100644
--- a/lib/runtime/dart/_interceptors.js
+++ b/lib/runtime/dart/_interceptors.js
@@ -141,7 +141,10 @@ dart_library.library('dart/_interceptors', null, /* Imports */[
}
[dartx.retainWhere](test) {
dart.as(test, dart.functionType(core.bool, [E]));
- _internal.IterableMixinWorkaround.removeWhereList(this, dart.fn(element => !dart.notNull(test(element)), core.bool, [E]));
+ _internal.IterableMixinWorkaround.removeWhereList(this, dart.fn(element => {
+ dart.as(element, E);
+ return !dart.notNull(test(element));
+ }, core.bool, [E]));
}
[dartx.where](f) {
dart.as(f, dart.functionType(core.bool, [E]));
« no previous file with comments | « lib/runtime/dart/_debugger.js ('k') | lib/runtime/dart/_internal.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698