Skip to content

Commit 97eeb2f

Browse files
committed
[MERGE #5616 @pleath] OS#18658076: Transfer function object type list to the new FunctionProxy when a cached function is deserialized
Merge pull request #5616 from pleath:18658076
2 parents 44a59f2 + 33885c7 commit 97eeb2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Runtime/Base/FunctionBody.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1462,6 +1462,8 @@ namespace Js
14621462
CopyDeferParseField(deferredPrototypeType);
14631463
CopyDeferParseField(undeferredFunctionType);
14641464
#undef CopyDeferParseField
1465+
1466+
other->SetFunctionObjectTypeList(this->GetFunctionObjectTypeList());
14651467
}
14661468

14671469
void ParseableFunctionInfo::Copy(ParseableFunctionInfo * other)
@@ -1496,8 +1498,6 @@ namespace Js
14961498
CopyDeferParseField(m_isAsmjsMode);
14971499
CopyDeferParseField(m_isAsmJsFunction);
14981500

1499-
other->SetFunctionObjectTypeList(this->GetFunctionObjectTypeList());
1500-
15011501
PropertyId * propertyIds = this->GetPropertyIdsForScopeSlotArray();
15021502
if (propertyIds != nullptr)
15031503
{

0 commit comments

Comments
 (0)