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 83351f18d20631dbfab5088fb06c2e0bee10653d..a5594bfe733c91468903d787f55d3e2d0007fe0b 100644 |
--- a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart |
+++ b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart |
@@ -273,7 +273,9 @@ class Index extends NativeFieldWrapperClass1 { |
if ((key_OR_range is KeyRange || key_OR_range == null)) { |
return _count_2(key_OR_range); |
} |
- return _count_3(key_OR_range); |
+ if (?key_OR_range) { |
+ return _count_3(key_OR_range); |
+ } |
throw "Incorrect number or type of arguments"; |
} |
@@ -293,7 +295,9 @@ class Index extends NativeFieldWrapperClass1 { |
if ((key is KeyRange || key == null)) { |
return _get_1(key); |
} |
- return _get_2(key); |
+ if (?key) { |
+ return _get_2(key); |
+ } |
throw "Incorrect number or type of arguments"; |
} |
@@ -309,7 +313,9 @@ class Index extends NativeFieldWrapperClass1 { |
if ((key is KeyRange || key == null)) { |
return _getKey_1(key); |
} |
- return _getKey_2(key); |
+ if (?key) { |
+ return _getKey_2(key); |
+ } |
throw "Incorrect number or type of arguments"; |
} |
@@ -331,10 +337,10 @@ class Index extends NativeFieldWrapperClass1 { |
if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is String || direction == null)) { |
return _openCursor_3(key_OR_range, direction); |
} |
- if (!?direction) { |
+ if (?key_OR_range && !?direction) { |
return _openCursor_4(key_OR_range); |
} |
- if ((direction is String || direction == null)) { |
+ if (?key_OR_range && (direction is String || direction == null)) { |
return _openCursor_5(key_OR_range, direction); |
} |
throw "Incorrect number or type of arguments"; |
@@ -370,10 +376,10 @@ class Index extends NativeFieldWrapperClass1 { |
if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is String || direction == null)) { |
return _openKeyCursor_3(key_OR_range, direction); |
} |
- if (!?direction) { |
+ if (?key_OR_range && !?direction) { |
return _openKeyCursor_4(key_OR_range); |
} |
- if ((direction is String || direction == null)) { |
+ if (?key_OR_range && (direction is String || direction == null)) { |
return _openKeyCursor_5(key_OR_range, direction); |
} |
throw "Incorrect number or type of arguments"; |
@@ -577,7 +583,9 @@ class ObjectStore extends NativeFieldWrapperClass1 { |
if ((key_OR_range is KeyRange || key_OR_range == null)) { |
return _count_2(key_OR_range); |
} |
- return _count_3(key_OR_range); |
+ if (?key_OR_range) { |
+ return _count_3(key_OR_range); |
+ } |
throw "Incorrect number or type of arguments"; |
} |
@@ -615,7 +623,9 @@ class ObjectStore extends NativeFieldWrapperClass1 { |
if ((key_OR_keyRange is KeyRange || key_OR_keyRange == null)) { |
return _delete_1(key_OR_keyRange); |
} |
- return _delete_2(key_OR_keyRange); |
+ if (?key_OR_keyRange) { |
+ return _delete_2(key_OR_keyRange); |
+ } |
throw "Incorrect number or type of arguments"; |
} |
@@ -635,7 +645,9 @@ class ObjectStore extends NativeFieldWrapperClass1 { |
if ((key is KeyRange || key == null)) { |
return _get_1(key); |
} |
- return _get_2(key); |
+ if (?key) { |
+ return _get_2(key); |
+ } |
throw "Incorrect number or type of arguments"; |
} |
@@ -661,10 +673,10 @@ class ObjectStore extends NativeFieldWrapperClass1 { |
if ((key_OR_range is KeyRange || key_OR_range == null) && (direction is String || direction == null)) { |
return _openCursor_3(key_OR_range, direction); |
} |
- if (!?direction) { |
+ if (?key_OR_range && !?direction) { |
return _openCursor_4(key_OR_range); |
} |
- if ((direction is String || direction == null)) { |
+ if (?key_OR_range && (direction is String || direction == null)) { |
return _openCursor_5(key_OR_range, direction); |
} |
throw "Incorrect number or type of arguments"; |