mirror of
https://github.com/google/blockly.git
synced 2026-01-06 16:40:07 +01:00
Fix procedure callers accessing private vars
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user