1/*
2 * Copyright (c) 2024 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 *     http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16let arkPrivate = globalThis.ArkPrivate;
17arkPrivate.Load(arkPrivate.Stack);
18arkPrivate.Load(arkPrivate.HashMap);
19
20function bgc() {
21    for (let i=0; i < 0x10000; i+=1) {
22        new String();
23    }
24    let a = new Array(0x10000);
25    for (let i=0; i<0x10000; i+=1) {
26        a[i] = new String(0x100);
27    }
28}
29function sgc() {
30    for(let i=0; i<0x10000; i+=1) {
31        new String();
32    }
33}
34
35function runNearStackLimit(f) {
36    function t() {
37        try { 
38            t();
39        } catch (e) {
40            f();
41        }
42    };
43    try {
44        t();
45    } catch(e) {} 
46}
47function arkPrint(d) {
48    print(JSON.stringify(d));
49}
50const v1 = ["15254"];
51for (const v2 of v1) {
52    const o3 = {};
53    function f4() {
54        return v1;
55    }
56    class C5 extends f4 {
57        set e(a7) {}
58    }
59    const o9 = {
60        get e() {
61            return f4;
62        }
63    };
64    for (let v10 = 0; v10 < 100; v10++) {
65        [-152.83464104903533,2.2250738585072014e-308,773563.4380633899,0.598964827003518,4.0,4.0,-5.0,-378087.9967490771,1000000000000.0,-5.0];
66    }
67    o3.c=v2;
68}
69print(123);
70