Skip to content

Commit

Permalink
Fixed [#73]
Browse files Browse the repository at this point in the history
  • Loading branch information
thqby committed Sep 20, 2023
1 parent d51cbc4 commit 2deca6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion source/script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10793,7 +10793,9 @@ void Line::Free(bool aSkipFatArrowBlockBreakpoint, bool aOnlyBreakpoint)
mBreakpoint = nullptr;
while (prev && prev->mLineNumber == mLineNumber && prev->mFileIndex == mFileIndex)
prev = (line = prev)->mPrevLine;
if (aSkipFatArrowBlockBreakpoint && mLineNumber == line->mLineNumber && mFileIndex == line->mFileIndex)
if (aSkipFatArrowBlockBreakpoint &&
line->mActionType == ACT_BLOCK_BEGIN && line->mAttribute && line->mNextLine &&
mLineNumber == line->mNextLine->mLineNumber && mFileIndex == line->mNextLine->mFileIndex)
return;
SetBreakpointForLineGroup(line, nullptr);
delete bp;
Expand Down
3 changes: 0 additions & 3 deletions source/script_object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3566,9 +3566,6 @@ void Object::CreateRootPrototypes()
Object::sClass = CreateClass(_T("Object"), anyClass, Object::sPrototype, NewObject<Object>);
Object::sObjectCall = Object::sClass->GetOwnPropMethod(_T("Call"));

// allow obj.get := val
if (auto get = Object::sPrototype->GetOwnPropMethod(_T("Get")))
get->AddRef(), Object::sPrototype->SetOwnProp(_T("Get"), get), get->Release();
// HotKeyIt: need addref since these are not referenced in script and we release prototype after CreateClass(aPrototype)
sAnyPrototype->AddRef();
sPrototype->AddRef();
Expand Down

0 comments on commit 2deca6f

Please sign in to comment.