Skip to content

Commit

Permalink
fix(blocks): correct the callType_ of procedures_defreturn (google#5974)
Browse files Browse the repository at this point in the history
Fixes a bug introduced in PR google#5736.
  • Loading branch information
gpfernandezflorio authored Mar 3, 2022
1 parent 2a0e547 commit b34db5b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks/procedures.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,6 @@ const PROCEDURE_DEF_COMMON = {
}
}
},
callType_: 'procedures_callnoreturn',
};

blocks['procedures_defnoreturn'] = {
Expand Down Expand Up @@ -486,6 +485,7 @@ blocks['procedures_defnoreturn'] = {
getProcedureDef: function() {
return [this.getFieldValue('NAME'), this.arguments_, false];
},
callType_: 'procedures_callnoreturn',
};

blocks['procedures_defreturn'] = {
Expand Down Expand Up @@ -531,6 +531,7 @@ blocks['procedures_defreturn'] = {
getProcedureDef: function() {
return [this.getFieldValue('NAME'), this.arguments_, true];
},
callType_: 'procedures_callreturn',
};

blocks['procedures_mutatorcontainer'] = {
Expand Down

0 comments on commit b34db5b

Please sign in to comment.