Fix procedure callers accessing private vars

This commit is contained in:
Beka Westberg
2020-04-11 16:16:25 -07:00
parent 1a0d966b70
commit 79ce850cf8

View File

@@ -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;
}