/*
 * 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.
 */
import assert from 'assert';
let g: symbol = Symbol();
let h = Symbol("s");
const i: unique symbol = Symbol("s3");
let a = {
    [g]: 1
};
a[g];
assert(a[g] === 1);
//Symbol.asyncIterator;
Symbol.hasInstance;
Symbol.isConcatSpreadable;
Symbol.iterator;
Symbol.match;
Symbol.replace;
Symbol.search;
Symbol.species;
Symbol.split;
Symbol.toPrimitive;
Symbol.toStringTag;
Symbol.unscopables;
let j = {
    //[Symbol.asyncIterator]:1,
    [Symbol.hasInstance]: 2,
    [Symbol.isConcatSpreadable]: 3,
    [Symbol.iterator]: 4,
    [Symbol.match]: 5,
    [Symbol.replace]: 6,
    [Symbol.search]: 7,
    [Symbol.species]: 8,
    [Symbol.split]: 9,
    [Symbol.toPrimitive]: 10,
    [Symbol.toStringTag]: 11,
    [Symbol.unscopables]: 12,
};
assert(j[Symbol.hasInstance] === 2);
assert(j[Symbol.isConcatSpreadable] === 3);
assert(j[Symbol.iterator] === 4);
assert(j[Symbol.match] === 5);
assert(j[Symbol.replace] === 6);
assert(j[Symbol.search] === 7);
assert(j[Symbol.species] === 8);
assert(j[Symbol.split] === 9);
assert(j[Symbol.toPrimitive] === 10);
assert(j[Symbol.toStringTag] === 11);
assert(j[Symbol.unscopables] === 12);
