Skip to content

Commit fc5ee07

Browse files
author
Philip Guo
committed
minor comments
1 parent 24fc9e8 commit fc5ee07

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PyTutorGAE/js/pytutor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function ExecutionVisualizer(inputCode, traceData, startingInstruction, domRootI
4747
// 'breakpointHere' - has a breakpoint been set here?
4848
this.codeOutputLines = [];
4949

50-
this.visitedLinesSet = d3.map();
50+
this.visitedLinesSet = null; // will change at every execution point
5151

5252

5353
// true iff trace ended prematurely since maximum instruction limit has
@@ -731,8 +731,8 @@ ExecutionVisualizer.prototype.updateOutput = function() {
731731

732732
// render code output:
733733
if (curEntry.line) {
734-
// calculate all lines that have been 'visited'
735-
// by execution up to (but NOT INCLUDING) curInstr:
734+
// calculate all lines that have been 'visited' (executed)
735+
// by execution up to (but NOT INCLUDING) this.curInstr:
736736
this.visitedLinesSet = d3.map();
737737
for (var i = 0; i < this.curInstr; i++) {
738738
if (this.curTrace[i].line) {

0 commit comments

Comments
 (0)