Project wide rename substack -> branch

This commit is contained in:
Tim Mickel 2016-08-10 11:27:21 -04:00
parent 34384f1563
commit 7780b25c46
10 changed files with 2403 additions and 2916 deletions
src/engine

View file

@ -58,7 +58,7 @@ var execute = function (sequencer, thread) {
// If we've gotten this far, all of the input blocks are evaluated,
// and `argValues` is fully populated. So, execute the block primitive.
// First, clear `currentStackFrame.reported`, so any subsequent execution
// (e.g., on return from a substack) gets fresh inputs.
// (e.g., on return from a branch) gets fresh inputs.
currentStackFrame.reported = {};
var primitiveReportedValue = null;
@ -74,8 +74,8 @@ var execute = function (sequencer, thread) {
sequencer.proceedThread(thread);
},
stackFrame: currentStackFrame.executionContext,
startSubstack: function (substackNum) {
sequencer.stepToSubstack(thread, substackNum);
startBranch: function (branchNum) {
sequencer.stepToBranch(thread, branchNum);
},
target: target
});