• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
16try {} catch (e) {
17    const dummy = new Proxy(function () {
18        return dummy;
19    },handler);
20}
21function test_func2(obj, type) {
22    for (let name of Object.getOwnPropertyNames(obj)) {}
23}
24function test_func8(obj, seed) {
25    let prop = test_func2(obj);
26}
27let test_gc;
28(function () {
29    test_gc = function() {};
30})();
31try{
32    (function (v4 = () => arguments){
33        var v5;
34        let v6 = v4();
35        if (v6 != null && typeof v6 == "object") Object.defineProperty(v6, test_func8(v6, 104270),{
36            value: v6
37        });
38        {
39            function f4() {
40                try {
41                    v5[5];
42                } catch (e) {}
43            }
44        }
45    })();
46} catch(e) {}
47print("success");
48