# Copyright (c) 2024 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. value 0 -1 -2 undefined success Map 1: Key: ark_stringKey, Value: ark_stringValue Map 2: Key: 1, Value: ark_numberValue Map 3: Key: true, Value: ark_booleanValue Map 4: Key: [object Object], Value: ark_objectValue Map 5: Key: null, Value: ark_nullValue Map 6: Key: undefined, Value: ark_undefinedValue Map 7: Key: NaN, Value: ark_NaNValue Map 8: Key: Infinity, Value: ark_infinityValue Map 9: Key: -Infinity, Value: ark_negativeInfinityValue Map 10: Key: /ark_regexKey/, Value: ark_regexValue Map 11: Key: [object Map], Value: ark_mapValue Map 12: Key: [object Set], Value: ark_setValue Map 13: Key: 1,2,3, Value: ark_arrayValue Map 14: Key: ark_unicodeKey 🔑, Value: ark_unicodeValue 😀 function Map() { [native code] } Keys: ark_stringKey Keys: 1 Keys: true Keys: [object Object] Keys: null Keys: undefined Keys: NaN Keys: Infinity Keys: -Infinity Keys: /ark_regexKey/ Keys: [object Map] Keys: [object Set] Keys: 1,2,3 Keys: ark_unicodeKey 🔑 Value: ark_stringValue Value: ark_numberValue Value: ark_booleanValue Value: ark_objectValue Value: ark_nullValue Value: ark_undefinedValue Value: ark_NaNValue Value: ark_infinityValue Value: ark_negativeInfinityValue Value: ark_regexValue Value: ark_mapValue Value: ark_setValue Value: ark_arrayValue Value: ark_unicodeValue 😀 Key: ark_stringKey, Value: ark_stringValue Key: 1, Value: ark_numberValue Key: true, Value: ark_booleanValue Key: [object Object], Value: ark_objectValue Key: null, Value: ark_nullValue Key: undefined, Value: ark_undefinedValue Key: NaN, Value: ark_NaNValue Key: Infinity, Value: ark_infinityValue Key: -Infinity, Value: ark_negativeInfinityValue Key: /ark_regexKey/, Value: ark_regexValue Key: [object Map], Value: ark_mapValue Key: [object Set], Value: ark_setValue Key: 1,2,3, Value: ark_arrayValue Key: ark_unicodeKey 🔑, Value: ark_unicodeValue 😀 Key: ark_stringKey, Retrieved Value: ark_stringValue Key: ark_stringKey, Exists: true Key: 1, Retrieved Value: ark_numberValue Key: 1, Exists: true Key: true, Retrieved Value: ark_booleanValue Key: true, Exists: true Key: [object Object], Retrieved Value: ark_objectValue Key: [object Object], Exists: true Key: null, Retrieved Value: ark_nullValue Key: null, Exists: true Key: undefined, Retrieved Value: ark_undefinedValue Key: undefined, Exists: true Key: NaN, Retrieved Value: ark_NaNValue Key: NaN, Exists: true Key: Infinity, Retrieved Value: ark_infinityValue Key: Infinity, Exists: true Key: -Infinity, Retrieved Value: ark_negativeInfinityValue Key: -Infinity, Exists: true Key: /ark_regexKey/, Retrieved Value: ark_regexValue Key: /ark_regexKey/, Exists: true Key: [object Map], Retrieved Value: ark_mapValue Key: [object Map], Exists: true Key: [object Set], Retrieved Value: ark_setValue Key: [object Set], Exists: true Key: 1,2,3, Retrieved Value: ark_arrayValue Key: 1,2,3, Exists: true Key: ark_unicodeKey 🔑, Retrieved Value: ark_unicodeValue 😀 Key: ark_unicodeKey 🔑, Exists: true 0 0 Caught an error: TypeError: iterable is not object Exception usage, but does not throw an error Caught an error: TypeError: obj is not Callable Key: key1, Value: value1 Caught an error: Error: Encountered key2