From bbc59318a5a091c8c45f99a7a8f1b93bea9a4a5b Mon Sep 17 00:00:00 2001 From: huangfeijie Date: Fri, 23 Sep 2022 10:16:18 +0800 Subject: [PATCH] issue: https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I5S5FK Fix the boolean value in debugger Add a new interface to handle the PrimitiveBooleanValue Signed-off-by: huangfeijie --- tooling/agent/runtime_impl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tooling/agent/runtime_impl.cpp b/tooling/agent/runtime_impl.cpp index d0c38342..05f77015 100644 --- a/tooling/agent/runtime_impl.cpp +++ b/tooling/agent/runtime_impl.cpp @@ -463,7 +463,8 @@ void RuntimeImpl::GetPrimitiveBooleanValue(Local value, std::vector> *outPropertyDesc) { Local jsValueRef; - jsValueRef = value->ToBoolean(vm_); + Local primitiveRef(value); + jsValueRef = primitiveRef->GetValue(vm_); SetKeyValue(jsValueRef, outPropertyDesc, "[[PrimitiveValue]]"); } -- Gitee