Skip to content

Commit fd3a345

Browse files
committed
Param debug scope metadata.
The debugger scopes are created in the non-debug mode as well. Removed the only-debug-mode check for creating debug scope for parameters only .
1 parent 772703d commit fd3a345

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Runtime/ByteCode/ByteCodeEmitter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2926,7 +2926,7 @@ void ByteCodeGenerator::EmitDefaultArgs(FuncInfo *funcInfo, ParseNode *pnode)
29262926
MapFormalsWithoutRest(pnode, emitDefaultArg);
29272927
}
29282928

2929-
if (ShouldTrackDebuggerMetadata() && m_writer.GetCurrentOffset() > beginOffset)
2929+
if (m_writer.GetCurrentOffset() > beginOffset)
29302930
{
29312931
PopulateFormalsScope(beginOffset, funcInfo, pnode);
29322932
}

0 commit comments

Comments
 (0)