mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-03-13 17:04:39 -04:00
Bind thread.yield passed to primitive to actual thread
This commit is contained in:
parent
27064ce163
commit
d52938c255
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ var execute = function (sequencer, thread, blockId) {
|
|||
try {
|
||||
// @todo deal with the return value
|
||||
primitiveReturnValue = blockFunction(argValues, {
|
||||
yield: thread.yield,
|
||||
yield: thread.yield.bind(thread),
|
||||
done: function() {
|
||||
sequencer.proceedThread(thread, blockId);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue