mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Merge pull request #1853 from mzgoddard/fix-execute-last-operation
Always pop the stack when the promised value is from the last op
This commit is contained in:
commit
fee248cd98
1 changed files with 2 additions and 2 deletions
|
@ -112,8 +112,8 @@ const handlePromise = (primitiveReportedValue, sequencer, thread, blockCached, l
|
|||
// Promise handlers
|
||||
primitiveReportedValue.then(resolvedValue => {
|
||||
handleReport(resolvedValue, sequencer, thread, blockCached, lastOperation);
|
||||
// If its a command block.
|
||||
if (lastOperation && typeof resolvedValue === 'undefined') {
|
||||
// If it's a command block or a top level reporter in a stackClick.
|
||||
if (lastOperation) {
|
||||
let stackFrame;
|
||||
let nextBlockId;
|
||||
do {
|
||||
|
|
Loading…
Reference in a new issue