small code fixes

This commit is contained in:
Mario
2020-11-16 09:27:26 +01:00
parent 13d2d3d301
commit c17fc8a50f
4 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -115,7 +115,7 @@ Blockly.Blocks['controls_if'] = {
elseStatementConnection = clauseBlock.statementConnection_;
break;
default:
throw 'Unknown block type.';
throw new Error('Unknown block type.');
}
clauseBlock = clauseBlock.nextConnection &&
clauseBlock.nextConnection.targetBlock();
@@ -153,7 +153,7 @@ Blockly.Blocks['controls_if'] = {
inputDo && inputDo.connection.targetConnection;
break;
default:
throw 'Unknown block type.';
throw new Error('Unknown block type.');
}
clauseBlock = clauseBlock.nextConnection &&
clauseBlock.nextConnection.targetBlock();