mirror of
https://github.com/openharmony/ark_js_runtime.git
synced 2026-08-27 10:41:15 -04:00
da747b6123
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>
21 lines
797 B
TypeScript
21 lines
797 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 empObj : {[key:string]:any} = {};
|
|
var isObj = typeof empObj == "object";
|
|
var keyNums = Object.keys(empObj).length;
|
|
print(keyNums);
|
|
print(isObj); |