From 23c5e14dc9a9bc8d8b6aae4d59090d275a53e330 Mon Sep 17 00:00:00 2001 From: lirismankarina Date: Tue, 24 Jun 2025 16:35:18 +0300 Subject: [PATCH] Change as expression to cte Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/ICM9KI Signed-off-by: lirismankarina --- frameworks/ets/ets/@ohos.app.ability.Want.ets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frameworks/ets/ets/@ohos.app.ability.Want.ets b/frameworks/ets/ets/@ohos.app.ability.Want.ets index 1389768cb6a..4f07df4f6c7 100644 --- a/frameworks/ets/ets/@ohos.app.ability.Want.ets +++ b/frameworks/ets/ets/@ohos.app.ability.Want.ets @@ -86,7 +86,7 @@ class RecordWriter { private writeArray(arr: Array): void { this.buffer.append('['); - const length = arr.length as int; + const length = arr.length.toInt(); this.checkReferencesCycle(arr); this.store.add(arr); for (let idx = 0; idx < length; idx++) { @@ -105,7 +105,7 @@ class RecordWriter { private writeBuildArray(arr: Object, arrayValue: ArrayValue): void { this.buffer.append('['); - const length = arrayValue.getLength() as int; + const length = arrayValue.getLength().toInt(); this.checkReferencesCycle(arr); this.store.add(arr); for (let idx = 0; idx < length; idx++) { -- Gitee