mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-12 14:03:57 -04:00
Populate executable targets when runtime.targets is populated so that scripts don't run before they are supposed to (e.g. before targets are done getting installed).
This commit is contained in:
parent
522b5e1a8e
commit
fbee37e915
9 changed files with 58 additions and 16 deletions
test/unit
|
@ -54,7 +54,9 @@ test('#760 - broadcastAndWait', t => {
|
|||
const tgt = new Target(rt, b);
|
||||
tgt.isStage = true;
|
||||
tgt.createVariable('testBroadcastID', 'message', Variable.BROADCAST_MESSAGE_TYPE);
|
||||
// Need to add to both runtime.targets as well as runtime.executableTargets here
|
||||
rt.targets.push(tgt);
|
||||
rt.executableTargets.push(tgt);
|
||||
|
||||
let th = rt._pushThread('broadcastAndWaitBlock', t);
|
||||
const util = new BlockUtility();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue