| 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 d5d6415fa44fc901fb2a2dda4dc126dce3be7c4b..6ba28ccdb39c8ea582fcf67bdd1e013e8a115513 100644
|
| --- a/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
|
| +++ b/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart
|
| @@ -165,7 +165,7 @@ class Database extends EventTarget {
|
| if ((storeName_OR_storeNames is String || storeName_OR_storeNames == null) && (mode is String || mode == null)) {
|
| return _transaction_3(storeName_OR_storeNames, mode);
|
| }
|
| - throw "Incorrect number or type of arguments";
|
| + throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
|
|
|
|
| @@ -285,7 +285,7 @@ class Index extends NativeFieldWrapperClass1 {
|
| if (?key_OR_range) {
|
| return _count_3(key_OR_range);
|
| }
|
| - throw "Incorrect number or type of arguments";
|
| + throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
|
|
|
|
| @@ -307,7 +307,7 @@ class Index extends NativeFieldWrapperClass1 {
|
| if (?key) {
|
| return _get_2(key);
|
| }
|
| - throw "Incorrect number or type of arguments";
|
| + throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
|
|
|
|
| @@ -325,7 +325,7 @@ class Index extends NativeFieldWrapperClass1 {
|
| if (?key) {
|
| return _getKey_2(key);
|
| }
|
| - throw "Incorrect number or type of arguments";
|
| + throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
|
|
|
|
| @@ -352,7 +352,7 @@ class Index extends NativeFieldWrapperClass1 {
|
| if (?key_OR_range && (direction is String || direction == null)) {
|
| return _openCursor_5(key_OR_range, direction);
|
| }
|
| - throw "Incorrect number or type of arguments";
|
| + throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
|
|
|
|
| @@ -391,7 +391,7 @@ class Index extends NativeFieldWrapperClass1 {
|
| if (?key_OR_range && (direction is String || direction == null)) {
|
| return _openKeyCursor_5(key_OR_range, direction);
|
| }
|
| - throw "Incorrect number or type of arguments";
|
| + throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
|
|
|
|
| @@ -595,7 +595,7 @@ class ObjectStore extends NativeFieldWrapperClass1 {
|
| if (?key_OR_range) {
|
| return _count_3(key_OR_range);
|
| }
|
| - throw "Incorrect number or type of arguments";
|
| + throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
|
|
|
|
| @@ -617,7 +617,7 @@ class ObjectStore extends NativeFieldWrapperClass1 {
|
| if ((name is String || name == null) && (keyPath is String || keyPath == null) && (options is Map || options == null)) {
|
| return _createIndex_2(name, keyPath, options);
|
| }
|
| - throw "Incorrect number or type of arguments";
|
| + throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
|
|
|
|
| @@ -635,7 +635,7 @@ class ObjectStore extends NativeFieldWrapperClass1 {
|
| if (?key_OR_keyRange) {
|
| return _delete_2(key_OR_keyRange);
|
| }
|
| - throw "Incorrect number or type of arguments";
|
| + throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
|
|
|
|
| @@ -657,7 +657,7 @@ class ObjectStore extends NativeFieldWrapperClass1 {
|
| if (?key) {
|
| return _get_2(key);
|
| }
|
| - throw "Incorrect number or type of arguments";
|
| + throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
|
|
|
|
| @@ -688,7 +688,7 @@ class ObjectStore extends NativeFieldWrapperClass1 {
|
| if (?key_OR_range && (direction is String || direction == null)) {
|
| return _openCursor_5(key_OR_range, direction);
|
| }
|
| - throw "Incorrect number or type of arguments";
|
| + throw new ArgumentError("Incorrect number or type of arguments");
|
| }
|
|
|
|
|
|
|