don't show visual report when monitor is running

This commit is contained in:
DD Liu 2017-05-08 16:51:45 -04:00
parent 706e112082
commit 26a5098347
3 changed files with 13 additions and 6 deletions
src/engine

View file

@ -85,7 +85,7 @@ const execute = function (sequencer, thread) {
} else {
// In a non-hat, report the value visually if necessary if
// at the top of the thread stack.
if (typeof resolvedValue !== 'undefined' && thread.atStackTop()) {
if (typeof resolvedValue !== 'undefined' && thread.showVisualReport && thread.atStackTop()) {
runtime.visualReport(currentBlockId, resolvedValue);
}
// Finished any yields.