diff --git a/tooling/agent/runtime_impl.cpp b/tooling/agent/runtime_impl.cpp index 2cd0c6839dedcbb20ca06f5dd0053b25b29369e9..ba0a410e1b5b300da15800c7120f217cc0fca2ff 100644 --- a/tooling/agent/runtime_impl.cpp +++ b/tooling/agent/runtime_impl.cpp @@ -228,8 +228,8 @@ DispatchResponse RuntimeImpl::GetProperties(const GetPropertiesParams ¶ms, GetCollatorValue(value, outPropertyDesc); } else if (value->IsJSDateTimeFormat(vm_)) { GetDateTimeFormatValue(value, outPropertyDesc); - } else if (value->IsSharedMap(vm_)) { - GetSharedMapValue(value, outPropertyDesc); + } else if (value->IsSendableMap(vm_)) { + GetSendableMapValue(value, outPropertyDesc); } else if (value->IsMap(vm_)) { GetMapValue(value, outPropertyDesc); } else if (value->IsWeakMap(vm_)) { @@ -256,7 +256,7 @@ DispatchResponse RuntimeImpl::GetProperties(const GetPropertiesParams ¶ms, GetListValue(value, outPropertyDesc); } else if (value->IsPlainArray(vm_)) { GetPlainArrayValue(value, outPropertyDesc); - } else if (value->IsTreeMap(vm_)) { + } else if (value->IsTreeMap(vm_)) { GetTreeMapValue(value, outPropertyDesc); } else if (value->IsTreeSet(vm_)) { GetTreeSetValue(value, outPropertyDesc); @@ -596,8 +596,8 @@ void RuntimeImpl::GetDateTimeFormatValue(Local value, SetKeyValue(jsValueRef, outPropertyDesc, "format"); } -void RuntimeImpl::GetSharedMapValue(Local value, - std::vector> *outPropertyDesc) +void RuntimeImpl::GetSendableMapValue(Local value, + std::vector> *outPropertyDesc) { Local sendableMapRef(value); uint32_t size = sendableMapRef->GetSize(vm_); @@ -912,4 +912,4 @@ void RuntimeImpl::GetPromiseValue(Local value, Local promiseResult = promiseRef->GetPromiseResult(vm_); SetKeyValue(promiseResult, outPropertyDesc, "[[PromiseResult]]"); } -} // namespace panda::ecmascript::tooling \ No newline at end of file +} // namespace panda::ecmascript::tooling diff --git a/tooling/agent/runtime_impl.h b/tooling/agent/runtime_impl.h index d7e6a1d77846fad9c627790bc5f2ccc03446167c..57c7f984c0b962adb1c7b8afd7c69fcad933a1e0 100644 --- a/tooling/agent/runtime_impl.h +++ b/tooling/agent/runtime_impl.h @@ -110,8 +110,8 @@ private: std::vector> *outPropertyDesc); void GetDateTimeFormatValue(Local value, std::vector> *outPropertyDesc); - void GetSharedMapValue(Local value, - std::vector> *outPropertyDesc); + void GetSendableMapValue(Local value, + std::vector> *outPropertyDesc); void GetMapValue(Local value, std::vector> *outPropertyDesc); void GetWeakMapValue(Local value, @@ -182,4 +182,4 @@ private: friend class DebuggerImpl; }; } // namespace panda::ecmascript::tooling -#endif \ No newline at end of file +#endif