Skip to content

Commit

Permalink
Fixed query of global vars assigned to OM arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
chrishamm committed Sep 10, 2024
1 parent 7cfabf4 commit 9f11714
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ObjectModel/ObjectModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -838,7 +838,10 @@ void ObjectModel::ReportItemAsJsonFull(OutputBuffer *buf, ObjectExplorationConte
{
buf->cat('[');
}

context.AddIndex(index);
ReportItemAsJson(buf, context, classDescriptor, element, endptr + 1);
context.RemoveIndex();

if (*filter == 0)
{
Expand Down Expand Up @@ -1130,7 +1133,10 @@ void ObjectModel::ReportHeapArrayAsJson(OutputBuffer *buf, ObjectExplorationCont
}
ExpressionValue element;
ah.GetElement(i, element);

context.AddIndex(i);
ReportItemAsJson(buf, context, classDescriptor, element, filter);
context.RemoveIndex();
}
if (isRootArray && context.GetNextElement() < 0)
{
Expand Down

0 comments on commit 9f11714

Please sign in to comment.