Skip to content

Commit 3bee8f0

Browse files
Meghana Guptapleath
authored andcommitted
1 parent ef75eac commit 3bee8f0

File tree

2 files changed

+170
-138
lines changed

2 files changed

+170
-138
lines changed

lib/Runtime/Language/InterpreterStackFrame.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6727,6 +6727,10 @@ namespace Js
67276727
// Finally exited with LeaveNull, We don't throw for early returns
67286728
if (finallyEndOffset == 0 && exceptionObj)
67296729
{
6730+
if (scriptContext->GetThreadContext()->GetTryHandlerAddrOfReturnAddr() != nullptr)
6731+
{
6732+
JavascriptExceptionOperators::WalkStackForCleaningUpInlineeInfo(scriptContext, nullptr, scriptContext->GetThreadContext()->GetTryHandlerAddrOfReturnAddr());
6733+
}
67306734
JavascriptExceptionOperators::DoThrow(const_cast<Js::JavascriptExceptionObject *>(exceptionObj), scriptContext);
67316735
}
67326736
if (finallyEndOffset != 0)

0 commit comments

Comments
 (0)