From d75b18674db20090cef3cd376aa2d8d55c028486 Mon Sep 17 00:00:00 2001 From: qiu_yu_jia Date: Sat, 30 Aug 2025 17:14:56 +0800 Subject: [PATCH] modify Error code number2int Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/ICVJGF Signed-off-by: qiu_yu_jia --- frameworks/ets/ets/@ohos.app.ability.dataUriUtils.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/ets/ets/@ohos.app.ability.dataUriUtils.ets b/frameworks/ets/ets/@ohos.app.ability.dataUriUtils.ets index 5dfe03105d2..3c4c4e7a4a0 100644 --- a/frameworks/ets/ets/@ohos.app.ability.dataUriUtils.ets +++ b/frameworks/ets/ets/@ohos.app.ability.dataUriUtils.ets @@ -31,7 +31,7 @@ errMap.set(ERROR_CODE_INVALID_PARAM, ERROR_MSG_INVALID_PARAM); errMap.set(ERROR_CODE_INNER_ERROR, ERROR_MSG_INNER_ERROR); class DataUriError extends Error { - constructor(code: number) { + constructor(code: int) { super(errMap.has(code) ? errMap.get(code) : ERROR_MSG_INNER_ERROR); this.code = code; } -- Gitee