mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-12 06:20:15 -04:00
Add comment and clear currentStackFrame.reported
This commit is contained in:
parent
9d9749681b
commit
e83cfa6049
1 changed files with 6 additions and 0 deletions
|
@ -71,6 +71,12 @@ var execute = function (sequencer, thread) {
|
|||
argValues[inputName] = currentStackFrame.reported[inputName];
|
||||
}
|
||||
|
||||
// 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.
|
||||
currentStackFrame.reported = {};
|
||||
|
||||
if (DEBUG_BLOCK_CALLS) {
|
||||
console.groupCollapsed('Executing: ' + opcode);
|
||||
console.log('with arguments: ', argValues);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue