| 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
|
|
|