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:
picklesrus 2018-12-18 11:13:57 -05:00 committed by GitHub
commit fee248cd98
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {