Skip to content

Commit

Permalink
Fix custom reporters when used inside of "repeat ( )" block in interp…
Browse files Browse the repository at this point in the history
…reter
  • Loading branch information
GarboMuffin committed Aug 22, 2023
1 parent 6399562 commit 14ed3a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/blocks/scratch3_procedures.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ class Scratch3ProcedureBlocks {
// Can't use reset() because that will reset too much.
const threadStackFrame = util.thread.peekStackFrame();
threadStackFrame.params = null;
threadStackFrame.executionContext = null;
delete stackFrame.returnValue;
delete stackFrame.executed;
return returnValue;
}
return;
Expand Down
Binary file added test/fixtures/execute/tw-custom-report-repeat.sb3
Binary file not shown.

0 comments on commit 14ed3a9

Please sign in to comment.