Index: tools/dom/templates/html/impl/impl_IDBFactory.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_IDBFactory.darttemplate b/tools/dom/templates/html/impl/impl_IDBFactory.darttemplate |
index a14677894b5fcf127e7f2ce63616d897e103a138..b82020f615b239adf4864be3e0b37913a1d6d4a3 100644 |
--- a/tools/dom/templates/html/impl/impl_IDBFactory.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_IDBFactory.darttemplate |
@@ -105,7 +105,8 @@ Future/*<T>*/ _completeRequest/*<T>*/(Request request) { |
// TODO: make sure that completer.complete is synchronous as transactions |
// may be committed if the result is not processed immediately. |
request.onSuccess.listen((e) { |
- completer.complete(request.result as dynamic/*=T*/); |
+ var result = _cast/*<T>*/(request.result); |
+ completer.complete(result); |
}); |
request.onError.listen(completer.completeError); |
return completer.future; |