From 79ce850cf861b88f7fbc875023e8723d1799b133 Mon Sep 17 00:00:00 2001 From: Beka Westberg Date: Sat, 11 Apr 2020 16:16:25 -0700 Subject: [PATCH] Fix procedure callers accessing private vars --- blocks/procedures.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/procedures.js b/blocks/procedures.js index c309a2516..4a89582b4 100644 --- a/blocks/procedures.js +++ b/blocks/procedures.js @@ -836,7 +836,7 @@ Blockly.Blocks['procedures_callnoreturn'] = { var name = this.getProcedureCall(); var def = Blockly.Procedures.getDefinition(name, this.workspace); if (def && (def.type != this.defType_ || - JSON.stringify(def.arguments_) != JSON.stringify(this.arguments_))) { + JSON.stringify(def.getVars()) != JSON.stringify(this.arguments_))) { // The signatures don't match. def = null; }