mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-11 22:10:00 -04:00
Merge pull request #1065 from mzgoddard/push-reported-again
Push reported again. Now with empty boolean support!
This commit is contained in:
commit
23e72525bf
8 changed files with 243 additions and 72 deletions
src/engine
|
@ -947,6 +947,9 @@ class Runtime extends EventEmitter {
|
|||
thread.target = target;
|
||||
thread.stackClick = opts.stackClick;
|
||||
thread.updateMonitor = opts.updateMonitor;
|
||||
thread.blockContainer = opts.updateMonitor ?
|
||||
this.monitorBlocks :
|
||||
target.blocks;
|
||||
|
||||
thread.pushStack(id);
|
||||
this.threads.push(thread);
|
||||
|
@ -976,6 +979,7 @@ class Runtime extends EventEmitter {
|
|||
newThread.target = thread.target;
|
||||
newThread.stackClick = thread.stackClick;
|
||||
newThread.updateMonitor = thread.updateMonitor;
|
||||
newThread.blockContainer = thread.blockContainer;
|
||||
newThread.pushStack(thread.topBlock);
|
||||
const i = this.threads.indexOf(thread);
|
||||
if (i > -1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue