1/* 2 * Copyright (c) 2025 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 */ 15let GeneratedImportVar_1 = ESValue.load('./increases_decreases_js_obj_js'); 16let foo = GeneratedImportVar_1.getProperty('foo'); 17 18let a: number =0.0 19a = foo.getProperty("num").toNumber() 20foo.setProperty(num, a + 1.0) 21a = a + 1.0 22 23a = foo.getProperty("num").toNumber() 24a = a + 1.0 25foo.setProperty(num, a) 26 27a = foo.getProperty("num").toNumber() 28foo.setProperty(num, a - 1.0) 29a = a - 1.0 30 31a = foo.getProperty("num").toNumber() 32a = a - 1.0 33foo.setProperty(num, a) 34 35 36let tmp_1 = foo.getProperty("num").toNumber() 37foo.setProperty(num, tmp_1 + 1.0) 38tmp_1 = tmp_1 + 1.0 39 40let tmp_2 = foo.getProperty("num").toNumber() 41tmp_2 = tmp_2 + 1.0 42foo.setProperty(num, tmp_2) 43 44let tmp_3 = foo.getProperty("num").toNumber() 45foo.setProperty(num, tmp_3 - 1.0) 46tmp_3 = tmp_3 - 1.0 47 48let tmp_4 = foo.getProperty("num").toNumber() 49tmp_4 = tmp_4 - 1.0 50foo.setProperty(num, tmp_4) 51 52