1/* 2 * Copyright (c) 2023 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 */ 15declare function print(str:any):string; 16 17// case1: CREATEOBJECTWITHEXCLUDEDKEYS 18const o4 : {} = { 19 get c() : {}{ 20 let {...v3} = t12() 21 }, 22} 23 24// case2: ProcessSnapshotConstantPool 25var m = { 26 get a() { 27 function f() { 28 return 1 29 } 30 }, 31 "a": "hello" 32} 33 34// case3: last label equal bcLast 35function f() {} 36function f1() { 37 return 38 try { 39 f() 40 } catch(e) { 41 } 42} 43 44// case4: GetDeps 45function f2() { 46 try { 47 return 48 } catch(e15) { 49 } 50 while(1) {} 51} 52 53print("compiler success");