Skip to content

Commit bc09b35

Browse files
committed
Fix xplat build
1 parent fdadb93 commit bc09b35

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/Runtime/Base/ScriptContext.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2290,14 +2290,15 @@ namespace Js
22902290
if (fUseParserStateCache)
22912291
{
22922292
hr = TryDeserializeParserState(grfscr, cchLength, srcInfo, utf8SourceInfo, sourceIndex, isCesu8, nullptr, func, pDataCache);
2293-
2293+
#ifdef ENABLE_WININET_PROFILE_DATA_CACHE
22942294
// ERROR_WRITE_PROTECT indicates we cannot cache this script for whatever reason.
22952295
// Disable generating and serializing the parser state cache.
22962296
if (hr == HRESULT_FROM_WIN32(ERROR_WRITE_PROTECT))
22972297
{
22982298
fUseParserStateCache = false;
22992299
grfscr &= ~fscrCreateParserState;
23002300
}
2301+
#endif
23012302
}
23022303

23032304
// If hydrating the parser state cache failed, let's try to do an ordinary parse

lib/Runtime/ByteCode/ByteCodeSerializer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3903,7 +3903,7 @@ class ByteCodeBufferReader
39033903
current = ReadDeferredStubs(current, cache, nestedCount, &deferredStubs, true);
39043904
}
39053905

3906-
ScopeInfo* scopeInfo = nullptr;
3906+
Field(ScopeInfo*) scopeInfo = nullptr;
39073907
if (definedFields->has_scopeInfo)
39083908
{
39093909
Assert(isDeferredFunction);
@@ -4260,7 +4260,7 @@ class ByteCodeBufferReader
42604260
return S_OK;
42614261
}
42624262

4263-
const byte* ReadScopeInfo(const byte* current, ByteCodeCache* cache, ScopeInfo** scopeInfo)
4263+
const byte* ReadScopeInfo(const byte* current, ByteCodeCache* cache, Field(ScopeInfo*)* scopeInfo)
42644264
{
42654265
int symbolCount = 0;
42664266
current = ReadInt32(current, &symbolCount);

0 commit comments

Comments
 (0)