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 16/* 17 * Copyright (c) 2024 Huawei Device Co., Ltd. 18 * Licensed under the Apache License, Version 2.0 (the "License"); 19 * you may not use this file except in compliance with the License. 20 * You may obtain a copy of the License at 21 * 22 * http://www.apache.org/licenses/LICENSE-2.0 23 * 24 * Unless required by applicable law or agreed to in writing, software 25 * distributed under the License is distributed on an "AS IS" BASIS, 26 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 27 * See the License for the specific language governing permissions and 28 * limitations under the License. 29 */ 30 31try {} catch (e) { 32 const dummy = new Proxy(function () { 33 return dummy; 34 },handler); 35} 36function test_func7(f) {} 37let test_gc; 38(function () { 39 test_gc = function() {}; 40})(); 41function f0(v0) {} 42(function (v4 = () => arguments) { 43 v4[Symbol.toStringTag] = "hello2"; 44})(); 45(function (v12 = () => v13, { 46 arguments: {} 47}) {})(undefined, { 48 arguments: {} 49}); 50try { 51 (function (v16 = () => v18, v17 = v16(), { 52 arguments: v18 53 }) { 54 f0(v17[1] === undefined); 55 test_func7(() => { 56 return f0(v17.length === 3); 57 }); 58 var v19; 59 { 60 function f10() { 61 v19[18]; 62 } 63 } 64 })(undefined, undefined, { 65 arguments: {} 66 }); 67} catch (e) { 68 print("Failed") 69} 70