diff --git a/core/input.js b/core/input.js index 346c3b7cc..c2c006e52 100644 --- a/core/input.js +++ b/core/input.js @@ -41,9 +41,8 @@ goog.require('goog.asserts'); * @constructor */ Blockly.Input = function(type, name, block, connection) { - if (!name && - (type == Blockly.INPUT_VALUE || type == Blockly.NEXT_STATEMENT)) { - throw "Value inputs and statement inputs must have non-empty name."; + if (type != Blockly.DUMMY_INPUT && !name) { + throw 'Value inputs and statement inputs must have non-empty name.'; } /** @type {number} */ this.type = type;