diff --git a/tooling/agent/runtime_impl.cpp b/tooling/agent/runtime_impl.cpp index d0c383423a55235ab6a6d73861a7e643d809755d..05f7701523412ea4127c770a3a4d16f0b16cf27e 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]]"); }