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

Unified Diff: sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart

Issue 26703006: Made index_db Cursor.next behavior consistent between JS and vm. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »
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 7ca47357ecaeab79dc049d954187d9acfe852878..ca20f438a6ac4ff056eabca407df76ab09773891 100644
--- a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
+++ b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
@@ -231,6 +231,15 @@ class Cursor extends Interceptor native "IDBCursor" {
}
}
+ @JSName('continue')
+ @DomName('IDBCursor.continue')
+ void next([Object key]) {
+ if (key == null) {
+ JS('void', '#.continue()', this);
+ } else {
+ JS('void', '#.continue(#)', this, key);
+ }
+ }
@DomName('IDBCursor.direction')
@DocsEditable()
@@ -263,11 +272,6 @@ class Cursor extends Interceptor native "IDBCursor" {
@DocsEditable()
Request _delete() native;
- @JSName('continue')
- @DomName('IDBCursor.continue')
- @DocsEditable()
- void next([Object key]) native;
-
@DomName('IDBCursor.update')
@DocsEditable()
Request _update(/*any*/ value) {
« no previous file with comments | « no previous file | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698