Revert "Revert "Push reported""

This reverts commit 107adad647.
This commit is contained in:
Michael "Z" Goddard 2018-04-10 16:29:51 -04:00
parent 5b9dc4df77
commit d04d6b2c6a
No known key found for this signature in database
GPG key ID: 762CD40DD5349872
8 changed files with 198 additions and 65 deletions
src/engine

View file

@ -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) {