From b34db5bd01f7b532ebabc80264ca9fc804a76c75 Mon Sep 17 00:00:00 2001 From: gpfernandezflorio Date: Thu, 3 Mar 2022 09:48:03 -0300 Subject: [PATCH] fix(blocks): correct the callType_ of procedures_defreturn (#5974) Fixes a bug introduced in PR #5736. --- blocks/procedures.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/blocks/procedures.js b/blocks/procedures.js index eed3a718b..d9de9e098 100644 --- a/blocks/procedures.js +++ b/blocks/procedures.js @@ -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'] = {