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