Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Meghana Gupta authored and pleath committed Nov 9, 2018
1 parent ef75eac commit 3bee8f0
Show file tree
Hide file tree
Showing 2 changed files with 170 additions and 138 deletions.
4 changes: 4 additions & 0 deletions lib/Runtime/Language/InterpreterStackFrame.cpp
Expand Up @@ -6727,6 +6727,10 @@ namespace Js
// Finally exited with LeaveNull, We don't throw for early returns
if (finallyEndOffset == 0 && exceptionObj)
{
if (scriptContext->GetThreadContext()->GetTryHandlerAddrOfReturnAddr() != nullptr)
{
JavascriptExceptionOperators::WalkStackForCleaningUpInlineeInfo(scriptContext, nullptr, scriptContext->GetThreadContext()->GetTryHandlerAddrOfReturnAddr());
}
JavascriptExceptionOperators::DoThrow(const_cast<Js::JavascriptExceptionObject *>(exceptionObj), scriptContext);
}
if (finallyEndOffset != 0)
Expand Down

0 comments on commit 3bee8f0

Please sign in to comment.