Index: tools/dom/templates/html/impl/impl_IDBCursor.darttemplate |
diff --git a/tools/dom/templates/html/impl/impl_IDBCursor.darttemplate b/tools/dom/templates/html/impl/impl_IDBCursor.darttemplate |
index 3464b5bd266ee7a773138c4ba26858833c5967ac..164cefa510d1e35f1639e02d5dc7f6e294198e27 100644 |
--- a/tools/dom/templates/html/impl/impl_IDBCursor.darttemplate |
+++ b/tools/dom/templates/html/impl/impl_IDBCursor.darttemplate |
@@ -10,7 +10,7 @@ $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
try { |
return _completeRequest($dom_delete()); |
} catch (e, stacktrace) { |
- return new Future.immediateError(e, stacktrace); |
+ return new Future.error(e, stacktrace); |
} |
} |
@@ -19,7 +19,7 @@ $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
try { |
return _completeRequest($dom_update(value)); |
} catch (e, stacktrace) { |
- return new Future.immediateError(e, stacktrace); |
+ return new Future.error(e, stacktrace); |
} |
} |