mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-03-14 01:09:51 -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 {
|
try {
|
||||||
// @todo deal with the return value
|
// @todo deal with the return value
|
||||||
primitiveReturnValue = blockFunction(argValues, {
|
primitiveReturnValue = blockFunction(argValues, {
|
||||||
yield: thread.yield,
|
yield: thread.yield.bind(thread),
|
||||||
done: function() {
|
done: function() {
|
||||||
sequencer.proceedThread(thread, blockId);
|
sequencer.proceedThread(thread, blockId);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue