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

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

Issue 12177007: Make mode argument optional for IDB transaction. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/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 1c7f4ea8a204c808624cb929ea179ad854b6553f..426330d45a20d6640d05ad28d19aacd341fedfb3 100644
--- a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
+++ b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
@@ -206,7 +206,7 @@ class CursorWithValue extends Cursor native "*IDBCursorWithValue" {
@Experimental
class Database extends EventTarget native "*IDBDatabase" {
- Transaction transaction(storeName_OR_storeNames, String mode) {
+ Transaction transaction(storeName_OR_storeNames, {String mode: 'readonly'}) {
if (mode != 'readonly' && mode != 'readwrite') {
throw new ArgumentError(mode);
}
« no previous file with comments | « no previous file | tests/html/indexeddb_1_test.dart » ('j') | tools/dom/templates/html/dart2js/impl_IDBDatabase.darttemplate » ('J')

Powered by Google App Engine
This is Rietveld 408576698