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

Unified Diff: lib/runtime/dart/indexed_db.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_common.js ('k') | lib/src/codegen/reify_coercions.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/runtime/dart/indexed_db.js
diff --git a/lib/runtime/dart/indexed_db.js b/lib/runtime/dart/indexed_db.js
index f9498d8df4568d552a3e05dcc5c80783ee7de51f..ead7167ff7a72196b857e5b97f47250b31558ea2 100644
--- a/lib/runtime/dart/indexed_db.js
+++ b/lib/runtime/dart/indexed_db.js
@@ -382,7 +382,7 @@ dart_library.library('dart/indexed_db', null, /* Imports */[
try {
let request = this[_deleteDatabase](name);
if (onBlocked != null) {
- request[dartx.onBlocked].listen(dart.as(onBlocked, __CastType0));
+ request[dartx.onBlocked].listen(dart.as(onBlocked, dart.functionType(dart.void, [html.Event])));
}
let completer = async.Completer.sync();
request[dartx.onSuccess].listen(dart.fn(e => {
@@ -1111,7 +1111,6 @@ dart_library.library('dart/indexed_db', null, /* Imports */[
});
VersionChangeEvent[dart.metadata] = () => [dart.const(new _metadata.DocsEditable()), dart.const(new _metadata.DomName('IDBVersionChangeEvent')), dart.const(new _metadata.Unstable()), dart.const(new _js_helper.Native("IDBVersionChangeEvent"))];
dart.registerExtension(dart.global.IDBVersionChangeEvent, VersionChangeEvent);
- const __CastType0 = dart.typedef('__CastType0', () => dart.functionType(dart.void, [html.Event]));
// Exports:
exports.Cursor = Cursor;
exports.CursorWithValue = CursorWithValue;
« no previous file with comments | « lib/runtime/dart/html_common.js ('k') | lib/src/codegen/reify_coercions.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698