| 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 80671f8cf067acb2a893015a36fee3d550bbb7e4..0d9ad22745236fc33b9e781a73b98ce2c0f56d8c 100644
|
| --- a/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
|
| +++ b/sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart
|
| @@ -302,7 +302,7 @@ class Database extends EventTarget native "IDBDatabase" {
|
| @DomName('IDBDatabase.createObjectStore')
|
| @DocsEditable
|
| ObjectStore $dom_createObjectStore(String name, [Map options]) {
|
| - if (?options) {
|
| + if (options != null) {
|
| var options_1 = convertDartToNative_Dictionary(options);
|
| return _$dom_createObjectStore_1(name, options_1);
|
| }
|
| @@ -864,7 +864,7 @@ class ObjectStore native "IDBObjectStore" {
|
| @Creates('Request')
|
| @_annotation_Creates_IDBKey
|
| Request $dom_add(/*any*/ value, [/*any*/ key]) {
|
| - if (?key) {
|
| + if (key != null) {
|
| var value_1 = convertDartToNative_SerializedScriptValue(value);
|
| var key_2 = convertDartToNative_SerializedScriptValue(key);
|
| return _$dom_add_1(value_1, key_2);
|
| @@ -900,7 +900,7 @@ class ObjectStore native "IDBObjectStore" {
|
| @DomName('IDBObjectStore.createIndex')
|
| @DocsEditable
|
| Index $dom_createIndex(String name, keyPath, [Map options]) {
|
| - if ((keyPath is List<String> || keyPath == null) && !?options) {
|
| + if ((keyPath is List<String> || keyPath == null) && options == null) {
|
| List keyPath_1 = convertDartToNative_StringArray(keyPath);
|
| return _$dom_createIndex_1(name, keyPath_1);
|
| }
|
| @@ -909,7 +909,7 @@ class ObjectStore native "IDBObjectStore" {
|
| var options_3 = convertDartToNative_Dictionary(options);
|
| return _$dom_createIndex_2(name, keyPath_2, options_3);
|
| }
|
| - if ((keyPath is String || keyPath == null) && !?options) {
|
| + if ((keyPath is String || keyPath == null) && options == null) {
|
| return _$dom_createIndex_3(name, keyPath);
|
| }
|
| if ((keyPath is String || keyPath == null)) {
|
| @@ -970,7 +970,7 @@ class ObjectStore native "IDBObjectStore" {
|
| @Creates('Request')
|
| @_annotation_Creates_IDBKey
|
| Request $dom_put(/*any*/ value, [/*any*/ key]) {
|
| - if (?key) {
|
| + if (key != null) {
|
| var value_1 = convertDartToNative_SerializedScriptValue(value);
|
| var key_2 = convertDartToNative_SerializedScriptValue(key);
|
| return _$dom_put_1(value_1, key_2);
|
|
|