From 672968e087a69c182b9b0be9b24aee72e557dda0 Mon Sep 17 00:00:00 2001 From: hjzhangcm Date: Wed, 15 Jun 2022 18:34:09 +0800 Subject: [PATCH] fix test case bug issue:https://gitee.com/openharmony/ark_js_runtime/issues/I5CH61 Signed-off-by: hjzhangcm --- ecmascript/tests/object_operator_test.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ecmascript/tests/object_operator_test.cpp b/ecmascript/tests/object_operator_test.cpp index 5fad3cd8..9c620f1a 100644 --- a/ecmascript/tests/object_operator_test.cpp +++ b/ecmascript/tests/object_operator_test.cpp @@ -240,12 +240,13 @@ JSTaggedValue TestDefinedSetter([[maybe_unused]] EcmaRuntimeCallInfo *argv) return JSTaggedValue(12); } -JSTaggedValue TestBoolSetter([[maybe_unused]] EcmaRuntimeCallInfo *argv) +bool TestBoolSetter([[maybe_unused]] JSThread *thread, + [[maybe_unused]] JSHandle &jsObject, + [[maybe_unused]] JSHandle &value, + [[maybe_unused]] bool success) { - // 12 : test case - return JSTaggedValue(JSTaggedValue::True()); + return true; } - static JSFunction *JSObjectTestCreate(JSThread *thread) { JSHandle globalEnv = thread->GetEcmaVM()->GetGlobalEnv();