From ba0935536cb5dfd8a10a5689bb97e868d63577ad Mon Sep 17 00:00:00 2001 From: xuzhihao Date: Sat, 11 May 2024 10:51:10 +0800 Subject: [PATCH] =?UTF-8?q?Bugfix:=20401=E9=94=99=E8=AF=AF=E7=A0=81XTS?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xuzhihao --- frameworks/js/napi/callee/callee.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frameworks/js/napi/callee/callee.js b/frameworks/js/napi/callee/callee.js index f527037bbe..3e6d78921a 100644 --- a/frameworks/js/napi/callee/callee.js +++ b/frameworks/js/napi/callee/callee.js @@ -51,10 +51,10 @@ class BusinessError extends Error { class ThrowInvalidParamError extends Error { constructor(msg) { - let code = ERROR_CODE_INVALID_PARAM; + this.code = ERROR_CODE_INVALID_PARAM; let oriMsg = ERROR_MSG_INVALID_PARAM; - super(code); - this.msg = oriMsg + msg; + let message = oriMsg + msg; + super(message); } }