Skip to content

Commit 8ea4831

Browse files
committed
fixed gnarly bug
1 parent 54e2d1d commit 8ea4831

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

‎v3/js/pytutor.js‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,7 @@ ExecutionVisualizer.prototype.precomputeCurTraceLayouts = function() {
14491449
updateCurLayout(childID, curRow, newRow);
14501450
}
14511451
else if (myViz.disableHeapNesting) {
1452-
updateCurLayout(childID, curRow, []);
1452+
updateCurLayout(childID, [], []);
14531453
}
14541454
}
14551455
});
@@ -1462,7 +1462,7 @@ ExecutionVisualizer.prototype.precomputeCurTraceLayouts = function() {
14621462
var dictKey = child[0];
14631463
if (!isPrimitiveType(dictKey)) {
14641464
var keyChildID = getRefID(dictKey);
1465-
updateCurLayout(keyChildID, curRow, []);
1465+
updateCurLayout(keyChildID, [], []);
14661466
}
14671467
}
14681468

@@ -1473,7 +1473,7 @@ ExecutionVisualizer.prototype.precomputeCurTraceLayouts = function() {
14731473
updateCurLayout(childID, curRow, newRow);
14741474
}
14751475
else if (myViz.disableHeapNesting) {
1476-
updateCurLayout(childID, curRow, []);
1476+
updateCurLayout(childID, [], []);
14771477
}
14781478
}
14791479
});
@@ -1487,7 +1487,7 @@ ExecutionVisualizer.prototype.precomputeCurTraceLayouts = function() {
14871487
var instKey = child[0];
14881488
if (!isPrimitiveType(instKey)) {
14891489
var keyChildID = getRefID(instKey);
1490-
updateCurLayout(keyChildID, curRow, []);
1490+
updateCurLayout(keyChildID, [], []);
14911491
}
14921492
}
14931493

@@ -1497,6 +1497,9 @@ ExecutionVisualizer.prototype.precomputeCurTraceLayouts = function() {
14971497
if (structurallyEquivalent(heapObj, curEntry.heap[childID])) {
14981498
updateCurLayout(childID, curRow, newRow);
14991499
}
1500+
else if (myViz.disableHeapNesting) {
1501+
updateCurLayout(childID, [], []);
1502+
}
15001503
}
15011504
});
15021505
}

0 commit comments

Comments
 (0)