Permalink
Browse files

Fix full repo UT break

  • Loading branch information...
pleath committed Nov 8, 2018
1 parent 93752a1 commit 378ce3c7a7d532871aef50e0c2a58428fa0892a0
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 378ce3c

Please sign in to comment.