From bdebfaf823d828d7cb3ac673f68d2f5e30f778f1 Mon Sep 17 00:00:00 2001 From: "Michael \"Z\" Goddard" Date: Mon, 17 Dec 2018 15:25:26 -0500 Subject: [PATCH] always pop the stack when the promised value is from the last op --- src/engine/execute.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/execute.js b/src/engine/execute.js index e7f0946cc..a58a0f7e0 100644 --- a/src/engine/execute.js +++ b/src/engine/execute.js @@ -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 its a command block or a top level reporter in a stackClick. + if (lastOperation) { let stackFrame; let nextBlockId; do {