Skip to content

Commit c404af8

Browse files
committed
Fix typo
1 parent 37ef106 commit c404af8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

lib/Runtime/Base/ScriptContext.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2227,23 +2227,23 @@ namespace Js
22272227
Assert(pDataCache != nullptr);
22282228

22292229
#ifdef ENABLE_WININET_PROFILE_DATA_CACHE
2230-
byte* serialzeParserStateCacheBuffer = parserStateCacheBuffer;
2231-
DWORD serialzeParserStateCacheSize = parserStateCacheByteCount;
2230+
byte* serializeParserStateCacheBuffer = parserStateCacheBuffer;
2231+
DWORD serializeParserStateCacheSize = parserStateCacheByteCount;
22322232
DWORD dwFlags = GENERATE_BYTE_CODE_PARSER_STATE;
22332233
DebugOnly(auto url = !srcInfo->sourceContextInfo->isHostDynamicDocument ? srcInfo->sourceContextInfo->url : this->GetUrl());
22342234

22352235
// If we already have a parser state cache serialized into a buffer, we should skip creating it again
22362236
if (parserStateCacheBuffer == nullptr)
22372237
{
2238-
Assert(serialzeParserStateCacheSize == 0);
2238+
Assert(serializeParserStateCacheSize == 0);
22392239

22402240
OUTPUT_TRACE_DEBUGONLY(Js::DataCachePhase, _u(" Trying to serialize parser state cache for '%s'\n"), url);
22412241

22422242
BEGIN_TEMP_ALLOCATOR(tempAllocator, this, _u("ByteCodeSerializer"));
22432243
hr = Js::ByteCodeSerializer::SerializeToBuffer(this,
22442244
tempAllocator, (DWORD)cbLength, pszSrc, func->GetFunctionBody(),
2245-
func->GetHostSrcInfo(), true, &serialzeParserStateCacheBuffer,
2246-
&serialzeParserStateCacheSize, dwFlags);
2245+
func->GetHostSrcInfo(), true, &serializeParserStateCacheBuffer,
2246+
&serializeParserStateCacheSize, dwFlags);
22472247
END_TEMP_ALLOCATOR(tempAllocator, this);
22482248

22492249
if (FAILED(hr))
@@ -2256,22 +2256,22 @@ namespace Js
22562256
}
22572257
else
22582258
{
2259-
Assert(serialzeParserStateCacheSize != 0);
2259+
Assert(serializeParserStateCacheSize != 0);
22602260

22612261
OUTPUT_TRACE_DEBUGONLY(Js::DataCachePhase, _u(" Skip serializing parser state cache since deserialized cache is available for '%s'\n"), url);
22622262
}
22632263

2264-
OUTPUT_TRACE_DEBUGONLY(Js::DataCachePhase, _u(" Trying to write parser state cache (%lu bytes) to stream for '%s'\n"), serialzeParserStateCacheSize, url);
2264+
OUTPUT_TRACE_DEBUGONLY(Js::DataCachePhase, _u(" Trying to write parser state cache (%lu bytes) to stream for '%s'\n"), serializeParserStateCacheSize, url);
22652265

2266-
hr = pDataCache->StartBlock(Js::SimpleDataCacheWrapper::BlockType_ParserState, serialzeParserStateCacheSize);
2266+
hr = pDataCache->StartBlock(Js::SimpleDataCacheWrapper::BlockType_ParserState, serializeParserStateCacheSize);
22672267

22682268
if (FAILED(hr))
22692269
{
22702270
OUTPUT_TRACE_DEBUGONLY(Js::DataCachePhase, _u(" Failed to write a block to the parser state cache data stream (hr = 0x%08lx) for '%s'\n"), hr, url);
22712271
return hr;
22722272
}
22732273

2274-
hr = pDataCache->WriteArray(serialzeParserStateCacheBuffer, serialzeParserStateCacheSize);
2274+
hr = pDataCache->WriteArray(serializeParserStateCacheBuffer, serializeParserStateCacheSize);
22752275

22762276
if (FAILED(hr))
22772277
{

0 commit comments

Comments
 (0)