mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
fix(blocks): correct the callType_ of procedures_defreturn (#5974)
Fixes a bug introduced in PR #5736.
This commit is contained in:
committed by
GitHub
parent
2a0e54759d
commit
b34db5bd01
@@ -443,7 +443,6 @@ const PROCEDURE_DEF_COMMON = {
|
||||
}
|
||||
}
|
||||
},
|
||||
callType_: 'procedures_callnoreturn',
|
||||
};
|
||||
|
||||
blocks['procedures_defnoreturn'] = {
|
||||
@@ -486,6 +485,7 @@ blocks['procedures_defnoreturn'] = {
|
||||
getProcedureDef: function() {
|
||||
return [this.getFieldValue('NAME'), this.arguments_, false];
|
||||
},
|
||||
callType_: 'procedures_callnoreturn',
|
||||
};
|
||||
|
||||
blocks['procedures_defreturn'] = {
|
||||
@@ -531,6 +531,7 @@ blocks['procedures_defreturn'] = {
|
||||
getProcedureDef: function() {
|
||||
return [this.getFieldValue('NAME'), this.arguments_, true];
|
||||
},
|
||||
callType_: 'procedures_callreturn',
|
||||
};
|
||||
|
||||
blocks['procedures_mutatorcontainer'] = {
|
||||
|
||||
Reference in New Issue
Block a user