Skip to content

Commit 573adb7

Browse files
committed
[MERGE #5819 @pleath] Fix full repo UT break
Merge pull request #5819 from pleath:fixcrosssite
2 parents 93752a1 + 378ce3c commit 573adb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Runtime/Library/JavascriptLibrary.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5322,7 +5322,7 @@ namespace Js
53225322
{
53235323
function->ChangeType();
53245324
function->SetEntryPoint(scriptContext->CurrentCrossSiteThunk);
5325-
if (functionProxy && !PHASE_OFF1(ShareCrossSiteFuncTypesPhase))
5325+
if (functionProxy && functionProxy->HasParseableInfo() && !PHASE_OFF1(ShareCrossSiteFuncTypesPhase))
53265326
{
53275327
function->ShareType();
53285328
functionProxy->SetCrossSiteDeferredFunctionType(UnsafeVarTo<ScriptFunction>(function)->GetScriptFunctionType());
@@ -5355,7 +5355,7 @@ namespace Js
53555355
function->ChangeType();
53565356
}
53575357
function->SetEntryPoint(scriptContext->CurrentCrossSiteThunk);
5358-
if (functionProxy && function->GetTypeHandler()->GetMayBecomeShared() && !PHASE_OFF1(ShareCrossSiteFuncTypesPhase))
5358+
if (functionProxy && functionProxy->HasParseableInfo() && function->GetTypeHandler()->GetMayBecomeShared() && !PHASE_OFF1(ShareCrossSiteFuncTypesPhase))
53595359
{
53605360
function->ShareType();
53615361
functionProxy->SetCrossSiteUndeferredFunctionType(UnsafeVarTo<ScriptFunction>(function)->GetScriptFunctionType());

0 commit comments

Comments
 (0)