File tree 1 file changed +16
-10
lines changed
1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -1688,20 +1688,26 @@ void __cdecl _alloca_probe_16()
1688
1688
void JavascriptFunction::ReparseAsmJsModule (ScriptFunction** functionRef)
1689
1689
{
1690
1690
ParseableFunctionInfo* functionInfo = (*functionRef)->GetParseableFunctionInfo ();
1691
-
1692
1691
Assert (functionInfo);
1693
- functionInfo->GetFunctionBody ()->AddDeferParseAttribute ();
1694
- functionInfo->GetFunctionBody ()->ResetEntryPoint ();
1695
- functionInfo->GetFunctionBody ()->ResetInParams ();
1692
+ try
1693
+ {
1694
+ functionInfo->GetFunctionBody ()->AddDeferParseAttribute ();
1695
+ functionInfo->GetFunctionBody ()->ResetEntryPoint ();
1696
+ functionInfo->GetFunctionBody ()->ResetInParams ();
1696
1697
1697
- FunctionBody * funcBody = functionInfo->Parse (functionRef);
1698
+ FunctionBody * funcBody = functionInfo->Parse (functionRef);
1698
1699
1699
- #if ENABLE_PROFILE_INFO
1700
- // This is the first call to the function, ensure dynamic profile info
1701
- funcBody->EnsureDynamicProfileInfo ();
1702
- #endif
1700
+ #if ENABLE_PROFILE_INFO
1701
+ // This is the first call to the function, ensure dynamic profile info
1702
+ funcBody->EnsureDynamicProfileInfo ();
1703
+ #endif
1703
1704
1704
- (*functionRef)->UpdateUndeferredBody (funcBody);
1705
+ (*functionRef)->UpdateUndeferredBody (funcBody);
1706
+ }
1707
+ catch (JavascriptException&)
1708
+ {
1709
+ Js::Throw::FatalInternalError ();
1710
+ }
1705
1711
}
1706
1712
1707
1713
// Thunk for handling calls to functions that have not had byte code generated for them.
You can’t perform that action at this time.
0 commit comments