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

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

Issue 1783603009: simplify function coercions -- DDC can generate function types in place (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 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/html.js ('k') | lib/runtime/dart/indexed_db.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/html_common.js
diff --git a/lib/runtime/dart/html_common.js b/lib/runtime/dart/html_common.js
index cd8211356c0894942899b83aa39cc12bb793b7c2..3fe18bd010d51582839df3caa0c94f69a34ce0ef 100644
--- a/lib/runtime/dart/html_common.js
+++ b/lib/runtime/dart/html_common.js
@@ -109,7 +109,7 @@ dart_library.library('dart/html_common', null, /* Imports */[
this.modify(dart.fn(s => s.addAll(iterable[dartx.map](dart.bind(this, _validateToken))), dart.void, [core.Set$(core.String)]));
}
removeAll(iterable) {
- this.modify(dart.fn(s => s.removeAll(iterable[dartx.map](dart.as(dart.bind(this, _validateToken), __CastType0))), dart.void, [core.Set$(core.String)]));
+ this.modify(dart.fn(s => s.removeAll(iterable[dartx.map](dart.as(dart.bind(this, _validateToken), dart.functionType(core.String, [core.Object])))), dart.void, [core.Set$(core.String)]));
}
toggleAll(iterable, shouldAdd) {
if (shouldAdd === void 0) shouldAdd = null;
@@ -264,7 +264,6 @@ dart_library.library('dart/html_common', null, /* Imports */[
return core.RegExp.new('^\\S+$');
}
});
- const __CastType0 = dart.typedef('__CastType0', () => dart.functionType(core.String, [core.Object]));
function convertDartToNative_SerializedScriptValue(value) {
return convertDartToNative_PrepareForStructuredClone(value);
}
« no previous file with comments | « lib/runtime/dart/html.js ('k') | lib/runtime/dart/indexed_db.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698