File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -3975,17 +3975,23 @@ JsErrorCode RunSerializedScriptCore(
39753975 else
39763976 {
39773977 size_t srcLength = 0 ;
3978+ Js::FunctionBody* functionBodyLocal = nullptr ;
39783979 hr = BGParseManager::GetBGParseManager ()->GetParseResults (
39793980 scriptContext,
39803981 bgParseCookie,
39813982 nullptr , // pszSrc
39823983 hsi,
3983- ( Field (Js::ParseableFunctionInfo**))(&functionBody) ,
3984+ &functionBodyLocal ,
39843985 nullptr , // pse
39853986 srcLength,
39863987 nullptr , // utf8sourceinfo
39873988 sourceIndex
39883989 );
3990+
3991+ if (hr == S_OK)
3992+ {
3993+ functionBody = functionBodyLocal;
3994+ }
39893995 }
39903996
39913997 if (FAILED (hr))
Original file line number Diff line number Diff line change @@ -248,7 +248,7 @@ HRESULT BGParseManager::GetParseResults(
248248 DWORD cookie,
249249 LPCUTF8 pszSrc,
250250 SRCINFO const * pSrcInfo,
251- Js::ParseableFunctionInfo ** ppFunc,
251+ Js::FunctionBody ** ppFunc,
252252 CompileScriptException* pse,
253253 size_t & srcLength,
254254 Js::Utf8SourceInfo* utf8SourceInfo,
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ class BGParseManager sealed : public JsUtil::WaitableJobManager
5858 DWORD cookie,
5959 LPCUTF8 pszSrc,
6060 SRCINFO const * pSrcInfo,
61- Js::ParseableFunctionInfo ** ppFunc,
61+ Js::FunctionBody ** ppFunc,
6262 CompileScriptException* pse,
6363 size_t & srcLength,
6464 Js::Utf8SourceInfo* utf8SourceInfo,
You can’t perform that action at this time.
0 commit comments