Skip to content

Commit

Permalink
feat: don't send frame debug message if the frame is nullptr.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dich0tomy authored and PoetaKodu committed Sep 17, 2022
1 parent 80f71ff commit cf011c2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions VM/src/VM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,11 @@ auto Instance::pushStackFrameOf(void const* addr_) -> Scope&
frame.scope = &scope;

#if DEBUG
if(addr_ != nullptr)
{
return scope;
}

if (scope.name.empty())
{
scope.name = std::move(name);
Expand Down

0 comments on commit cf011c2

Please sign in to comment.