mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-11 23:30:09 -05:00
4e24a3f380
Remove indexOf tests for thread existence in doneThreads. Maintain a list of null and thread objects mirroring the index position of threads that are done in runtime.threads. Filter out null values after filtering out done threads from runtime.threads. This has a small side effect that threads that normally became DONE and were added to doneThreads before being removed or restarted will not be in doneThreads in this version. Restarted threads (_restartThread) do not appear in this version but new copies will be in Runtime this.threads supporting glow and monitor updates. Removed threads (_removeThread) do not appear in this version if they are removed after they were seen as DONE by the prior version. Threads removed before they are seen as DONE do not appear in doneThreads in the prior or this version. Threads that are removed before normally becoming DONE do not appear in doneThreads in either case. Threads that are restarted before the loop checks if the thread is done do not appear in doneThreads in either case. |
||
---|---|---|
.. | ||
adapter.js | ||
blocks.js | ||
execute.js | ||
list.js | ||
monitor-record.js | ||
mutation-adapter.js | ||
runtime.js | ||
sequencer.js | ||
target.js | ||
thread.js | ||
variable.js |