mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-27 14:41:12 -04:00
Implement "Stop this script" function
Existing implementation incorrectly terminates the entire thread. See: http://llk.github.io/scratch-vm/#144142535
This commit is contained in:
parent
aecc3bf893
commit
9cb595312e
4 changed files with 28 additions and 7 deletions
src/engine
|
@ -183,8 +183,8 @@ var execute = function (sequencer, thread) {
|
|||
stopOtherTargetThreads: function () {
|
||||
runtime.stopForTarget(target, thread);
|
||||
},
|
||||
stopThread: function () {
|
||||
sequencer.retireThread(thread);
|
||||
stopThisScript: function () {
|
||||
thread.stopThisScript();
|
||||
},
|
||||
startProcedure: function (procedureCode) {
|
||||
sequencer.stepToProcedure(thread, procedureCode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue