Skip to content

Commit f4fd4fc

Browse files
author
Thomas Moore (CHAKRA)
committed
Fix additional cross-plat build failure
1 parent 2d528c9 commit f4fd4fc

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

lib/Jsrt/Jsrt.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff 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))

lib/Parser/BGParseManager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

lib/Parser/BGParseManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)