Skip to content

Commit 51c7836

Browse files
committed
Trivial deserialization fix: Check for deferred deserialized function before trying to access ParseableFunctionInfo in byte code gen.
1 parent d75b4e5 commit 51c7836

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Runtime/ByteCode/ByteCodeGenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3245,7 +3245,7 @@ void VisitNestedScopes(ParseNode* pnodeScopeList, ParseNode* pnodeParent, ByteCo
32453245
{
32463246
Assert(*pIndex < parentNestedArray->nestedCount);
32473247
Js::FunctionInfo * info = parentNestedArray->functionInfoArray[*pIndex];
3248-
if (info)
3248+
if (info && info->HasParseableInfo())
32493249
{
32503250
reuseNestedFunc = info->GetParseableFunctionInfo();
32513251
}

0 commit comments

Comments
 (0)