Skip to content

Commit dfc8fb4

Browse files
committed
Clear singletoneinstance on activation object clone
1 parent ea29437 commit dfc8fb4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Runtime/Types/ActivationObject.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ namespace Js
129129
BlockActivationObject* BlockActivationObject::Clone(ScriptContext *scriptContext)
130130
{
131131
DynamicType* type = this->GetDynamicType();
132+
type->GetTypeHandler()->ClearSingletonInstance(); //We are going to share the type.
133+
132134
BlockActivationObject* blockScopeClone = DynamicObject::NewObject<BlockActivationObject>(scriptContext->GetRecycler(), type);
133135
int slotCapacity = this->GetTypeHandler()->GetSlotCapacity();
134136

0 commit comments

Comments
 (0)