From 249bec57624a096880f6bfb4e3e52979596372d7 Mon Sep 17 00:00:00 2001 From: GarboMuffin Date: Fri, 14 Jul 2023 21:51:30 -0500 Subject: [PATCH] Fix return value of non-existant procedures in interpreter --- src/blocks/scratch3_procedures.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/blocks/scratch3_procedures.js b/src/blocks/scratch3_procedures.js index 56be0992..b981a038 100644 --- a/src/blocks/scratch3_procedures.js +++ b/src/blocks/scratch3_procedures.js @@ -49,6 +49,9 @@ class Scratch3ProcedureBlocks { // block is dragged between sprites without the definition. // Match Scratch 2.0 behavior and noop. if (paramNamesIdsAndDefaults === null) { + if (isReporter) { + return ''; + } return; }