Permalink
Browse files

[MERGE #5819 @pleath] Fix full repo UT break

Merge pull request #5819 from pleath:fixcrosssite
  • Loading branch information...
pleath committed Nov 8, 2018
2 parents 93752a1 + 378ce3c commit 573adb7658ddec699b25ef28ade8abfcdd6f9c4e
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Runtime/Library/JavascriptLibrary.cpp
@@ -5322,7 +5322,7 @@ namespace Js
{
function->ChangeType();
function->SetEntryPoint(scriptContext->CurrentCrossSiteThunk);
if (functionProxy && !PHASE_OFF1(ShareCrossSiteFuncTypesPhase))
if (functionProxy && functionProxy->HasParseableInfo() && !PHASE_OFF1(ShareCrossSiteFuncTypesPhase))
{
function->ShareType();
functionProxy->SetCrossSiteDeferredFunctionType(UnsafeVarTo<ScriptFunction>(function)->GetScriptFunctionType());
@@ -5355,7 +5355,7 @@ namespace Js
function->ChangeType();
}
function->SetEntryPoint(scriptContext->CurrentCrossSiteThunk);
if (functionProxy && function->GetTypeHandler()->GetMayBecomeShared() && !PHASE_OFF1(ShareCrossSiteFuncTypesPhase))
if (functionProxy && functionProxy->HasParseableInfo() && function->GetTypeHandler()->GetMayBecomeShared() && !PHASE_OFF1(ShareCrossSiteFuncTypesPhase))
{
function->ShareType();
functionProxy->SetCrossSiteUndeferredFunctionType(UnsafeVarTo<ScriptFunction>(function)->GetScriptFunctionType());

0 comments on commit 573adb7

Please sign in to comment.