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

Unified Diff: sdk/lib/indexed_db/dartium/indexed_db_dartium.dart

Issue 23461018: Fixing Indexed DB from latest Blink roll (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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
Index: sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
diff --git a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
index c21a6a4ef0a28bfe545a91fe2c19ff669f4f68ca..9071f3833edec52ee3370f0e3af7b90950098419 100644
--- a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
+++ b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
@@ -441,7 +441,12 @@ class Index extends NativeFieldWrapperClass1 {
} else {
key_OR_range = range;
}
- var request = _openCursor(key_OR_range, direction);
+ var request;
+ if (direction == null) {
+ request = _openCursor(key_OR_range);
+ } else {
+ request = _openCursor(key_OR_range, direction);
+ }
return ObjectStore._cursorStreamFromResult(request, autoAdvance);
}
@@ -463,7 +468,12 @@ class Index extends NativeFieldWrapperClass1 {
} else {
key_OR_range = range;
}
- var request = _openKeyCursor(key_OR_range, direction);
+ var request;
+ if (direction == null) {
+ request = _openKeyCursor(key_OR_range);
+ } else {
+ request = _openKeyCursor(key_OR_range, direction);
+ }
return ObjectStore._cursorStreamFromResult(request, autoAdvance);
}
@@ -502,11 +512,11 @@ class Index extends NativeFieldWrapperClass1 {
@DomName('IDBIndex.openCursor')
@DocsEditable()
- Request _openCursor(Object key, String direction) native "IDBIndex_openCursor_Callback";
+ Request _openCursor(Object key, [String direction]) native "IDBIndex_openCursor_Callback";
@DomName('IDBIndex.openKeyCursor')
@DocsEditable()
- Request _openKeyCursor(Object key, String direction) native "IDBIndex_openKeyCursor_Callback";
+ Request _openKeyCursor(Object key, [String direction]) native "IDBIndex_openKeyCursor_Callback";
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file

Powered by Google App Engine
This is Rietveld 408576698