mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-13 23:10:56 -04:00
Stack management, stack frames, forever and repeat
This commit is contained in:
parent
4c6f08f665
commit
379b2dec79
6 changed files with 135 additions and 55 deletions
src/engine
|
@ -21,6 +21,12 @@ function Thread (firstBlock) {
|
|||
*/
|
||||
this.stack = [];
|
||||
|
||||
/**
|
||||
* Stack frames for the thread. Store metadata for the executing blocks.
|
||||
* @type {Array.<Object>}
|
||||
*/
|
||||
this.stackFrames = [];
|
||||
|
||||
/**
|
||||
* Status of the thread, one of three states (below)
|
||||
* @type {number}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue