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