diff --git a/tooling/agent/debugger_impl.cpp b/tooling/agent/debugger_impl.cpp index fecfb8d..7572e81 100644 --- a/tooling/agent/debugger_impl.cpp +++ b/tooling/agent/debugger_impl.cpp @@ -1149,6 +1149,9 @@ void DebuggerImpl::GetClosureVariables(const FrameHandler *frameHandler, Local name = StringRef::NewFromUtf8(vm_, varName.c_str()); + if (value->IsHole()) { + value = JSValueRef::Undefined(vm_); + } PropertyAttribute descriptor(value, true, true, true); localObj->DefineProperty(vm_, name, descriptor); }