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

Unified Diff: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.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
« no previous file with comments | « no previous file | sdk/lib/indexed_db/dartium/indexed_db_dartium.dart » ('j') | tests/html/html.status » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
diff --git a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
index 3fbe9ff4d2bf8b12039b5c5c507d83586e9e557a..345553fab9d506602296b82e1885aac6e231568d 100644
--- a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
+++ b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
@@ -578,7 +578,12 @@ class Index extends Interceptor native "IDBIndex" {
} 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);
}
@@ -600,7 +605,12 @@ class Index extends Interceptor native "IDBIndex" {
} 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);
}
@@ -654,7 +664,7 @@ class Index extends Interceptor native "IDBIndex" {
@Returns('Request')
@Creates('Request')
@Creates('Cursor')
- Request _openCursor(Object key, String direction) native;
+ Request _openCursor(Object key, [String direction]) native;
@JSName('openKeyCursor')
@DomName('IDBIndex.openKeyCursor')
@@ -662,7 +672,7 @@ class Index extends Interceptor native "IDBIndex" {
@Returns('Request')
@Creates('Request')
@Creates('Cursor')
- Request _openKeyCursor(Object key, String direction) native;
+ Request _openKeyCursor(Object key, [String direction]) native;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
« no previous file with comments | « no previous file | sdk/lib/indexed_db/dartium/indexed_db_dartium.dart » ('j') | tests/html/html.status » ('J')

Powered by Google App Engine
This is Rietveld 408576698