From 3fcc05240d1ab375aa513670a04263be7e973764 Mon Sep 17 00:00:00 2001 From: limabiao Date: Wed, 9 Jul 2025 17:10:04 +0800 Subject: [PATCH] =?UTF-8?q?BusinessError=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: limabiao --- frameworks/js/ani/vibrator/ets/@ohos.vibrator.ets | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frameworks/js/ani/vibrator/ets/@ohos.vibrator.ets b/frameworks/js/ani/vibrator/ets/@ohos.vibrator.ets index 3104e87..710ed2a 100644 --- a/frameworks/js/ani/vibrator/ets/@ohos.vibrator.ets +++ b/frameworks/js/ani/vibrator/ets/@ohos.vibrator.ets @@ -29,8 +29,8 @@ export default namespace vibrator { let p1 = taskpool.execute(startVibrationIntSync, effect, attribute); p1.then((e: NullishType)=>{ console.log("in callback startVibration then.") - let err1 : BusinessError - callback(err1, undefined); + let err = new BusinessError; + callback(err, undefined); }); p1.catch((err: NullishType) => { console.log("startVibration catch in callback thread."); @@ -61,7 +61,7 @@ export default namespace vibrator { p1.then((e: NullishType)=>{ let r = e as boolean; console.log("in callback isSupportEffectInterally then. e is ", e) - let err : BusinessError + let err = new BusinessError; callback(err, r); }); p1.catch((error: NullishType) => { -- Gitee