Skip to content

Commit

Permalink
修复了在 C/E 块中调用返回值函数后参数丢失的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcui03 committed May 10, 2022
1 parent 31f425f commit 8420b7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/engine/execute.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,11 @@ const execute = function (sequencer, thread) {

const inputName = opCached._parentKey;
const argValues = opCached._parentValues;

// cc - clear params list on current stack frame when a reporter function was returned
if (currentStackFrame.waitingReporter) {
currentStackFrame.params = null;
}

// cc - if current call is the last operation, which means that it is called by clicking directly,
// then call handleReport
Expand Down

0 comments on commit 8420b7d

Please sign in to comment.