Skip to content

Commit 95e73cf

Browse files
committed
bam
1 parent 007b1fb commit 95e73cf

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎v3/js/pytutor.js‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,9 +1633,7 @@ ExecutionVisualizer.prototype.updateOutputFull = function(smoothTransition) {
16331633
var idx = myViz.curInstr - 1;
16341634
var retStack = myViz.curTrace[idx].stack_to_render;
16351635

1636-
/* don't try this hack when returning from an external function
1637-
such as Python eval() that's not visualized */
1638-
if (retStack.length > 0) {
1636+
assert(retStack.length > 0);
16391637

16401638
var retFrameId = retStack[retStack.length - 1].frame_id;
16411639

@@ -1660,8 +1658,6 @@ ExecutionVisualizer.prototype.updateOutputFull = function(smoothTransition) {
16601658
prevIsReturn = false; // this is now a call site, not a return
16611659
smoothTransition = false;
16621660
}
1663-
1664-
}
16651661
}
16661662

16671663
if (myViz.pyCrazyMode) {

0 commit comments

Comments
 (0)