Move popStack to inside execute

This commit is contained in:
Tim Mickel 2016-06-09 14:45:54 -04:00
parent b0441e2ef5
commit 88402ee68c
2 changed files with 2 additions and 2 deletions
src/engine

View file

@ -121,8 +121,6 @@ Sequencer.prototype.stepToSubstack = function (thread, currentBlockId) {
Sequencer.prototype.proceedThread = function (thread, currentBlockId) {
// Stop showing run feedback in the editor.
this.runtime.glowBlock(currentBlockId, false);
// Pop the stack and stack frame
thread.popStack();
// Mark the thread as done and proceed to the next block.
thread.status = Thread.STATUS_DONE;
// Refresh nextBlock in case it has changed during a yield.