You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Changing the case of a procedure causes a console error because the code is calling a function that doesn't exist.
Expected Behavior
You should be able to change the case of a parameter without errors.
Actual Behavior
Errors!
Steps to Reproduce
Create a procedure definition block.
Open the mutator and add a paramter named lower case x ('x').
Select this character and rename it to upper case x ('X').
Observe the console error.
Stack Traces
procedures.js:592 Uncaught TypeError: outerWs.renameVarById is not a function
at Blockly.FieldTextInput.validator_ (procedures.js:592)
at Blockly.FieldTextInput.Blockly.Field.setValue (field.js:757)
at Blockly.FieldTextInput.onHtmlInputChange_ (field_textinput.js:361)
at HTMLInputElement.wrapFunc (blockly.js:481)
Operating System and Browser
I am assuming this is not browser specific.
Additional Information
This line should actually be this.getSourceBlock().renameVarById(model.getId(), varName);
When this is fixed the applicable procedure mocha test should be un-skipped.
The text was updated successfully, but these errors were encountered:
Problem statement
Changing the case of a procedure causes a console error because the code is calling a function that doesn't exist.
Expected Behavior
You should be able to change the case of a parameter without errors.
Actual Behavior
Errors!
Steps to Reproduce
Stack Traces
Operating System and Browser
I am assuming this is not browser specific.
Additional Information
This line should actually be this.getSourceBlock().renameVarById(model.getId(), varName);
When this is fixed the applicable procedure mocha test should be un-skipped.
The text was updated successfully, but these errors were encountered: