From d8e166f5cefe46271bc4b6cda6b97cb364f66a71 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 [Bug]: Primitives 2.0 https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/ICSUBI Signed-off-by: lirismankarina Signed-off-by: Klimentieva --- 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 3d0cbd3d008..d6ec6e547d0 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