Skip to content
Permalink
Browse files

[CVE-2019-0937]

  • Loading branch information...
pleath authored and MikeHolman committed Apr 17, 2019
1 parent b5f8fad commit 7827e117753052d479fabe19a25cfece88059bca
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/Runtime/ByteCode/ByteCodeEmitter.cpp
@@ -4006,6 +4006,11 @@ void ByteCodeGenerator::StartEmitCatch(ParseNodeCatch *pnodeCatch)
sym->SetIsGlobalCatch(true);
}

if (sym->NeedsScopeObject())
{
scope->SetIsObject();
}

Assert(sym->GetScopeSlot() == Js::Constants::NoProperty);
if (sym->NeedsSlotAlloc(this, funcInfo))
{
@@ -4029,6 +4034,11 @@ void ByteCodeGenerator::StartEmitCatch(ParseNodeCatch *pnodeCatch)
sym->SetIsGlobalCatch(true);
}

if (sym->NeedsScopeObject())
{
scope->SetIsObject();
}

if (scope->GetMustInstantiate())
{
if (sym->IsInSlot(this, funcInfo))

0 comments on commit 7827e11

Please sign in to comment.
You can’t perform that action at this time.