Files
lijincheng da747b6123 Aot Test Case and Fix bugs in Lowering
1.Add aot test case: CreateEmptyArray and CreateEmptyObject and add them to Aot UT-Test.
2.fix "thisobj and input args" bug of callIThisRangeDyn.
3.Update LowerLdGlobalVar and LowerLdObjByName in lowering.
4.fix "callruntime" bug in lowering of LowerStObjByIndex.

issue:https://gitee.com/openharmony/ark_js_runtime/issues/I550RE

Signed-off-by: lijincheng <lijincheng13@huawei.com>
2022-04-28 14:15:11 +08:00

20 lines
749 B
TypeScript

/*
* Copyright (c) 2022 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.
*/
declare function print(str:any):string;
var empArr : Array<any> = [];
var isArr = Array.isArray(empArr);
print(empArr.length);
print(isArr);