mirror of
https://gitee.com/openharmony/arkcompiler_toolchain
synced 2024-11-23 23:49:50 +00:00
!294 Fix closure variables display exception
Merge pull request !294 from 杨阳/fix_display_exception
This commit is contained in:
commit
f8d677dbfb
@ -1149,6 +1149,9 @@ void DebuggerImpl::GetClosureVariables(const FrameHandler *frameHandler, Local<J
|
||||
continue;
|
||||
}
|
||||
Local<JSValueRef> 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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user