Skip to content

Commit 7827e11

Browse files
pleathMikeHolman
authored andcommitted
1 parent b5f8fad commit 7827e11

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/Runtime/ByteCode/ByteCodeEmitter.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4006,6 +4006,11 @@ void ByteCodeGenerator::StartEmitCatch(ParseNodeCatch *pnodeCatch)
40064006
sym->SetIsGlobalCatch(true);
40074007
}
40084008

4009+
if (sym->NeedsScopeObject())
4010+
{
4011+
scope->SetIsObject();
4012+
}
4013+
40094014
Assert(sym->GetScopeSlot() == Js::Constants::NoProperty);
40104015
if (sym->NeedsSlotAlloc(this, funcInfo))
40114016
{
@@ -4029,6 +4034,11 @@ void ByteCodeGenerator::StartEmitCatch(ParseNodeCatch *pnodeCatch)
40294034
sym->SetIsGlobalCatch(true);
40304035
}
40314036

4037+
if (sym->NeedsScopeObject())
4038+
{
4039+
scope->SetIsObject();
4040+
}
4041+
40324042
if (scope->GetMustInstantiate())
40334043
{
40344044
if (sym->IsInSlot(this, funcInfo))

0 commit comments

Comments
 (0)