Replace ReferenceError with Error.

Change to 4-space indentation rather than aligning with parent structure.
This commit is contained in:
Neil Fraser
2018-06-29 16:53:26 -07:00
committed by Neil Fraser
parent c51cf0b79c
commit dce60fd152
14 changed files with 39 additions and 39 deletions

View File

@@ -177,8 +177,8 @@ Blockly.VariableMap.prototype.createVariable = function(name,
if (variable) {
if (opt_id && variable.getId() != opt_id) {
throw Error('Variable "' + name + '" is already in use and its id is "' +
variable.getId() + '" which conflicts with the passed in ' +
'id, "' + opt_id + '".');
variable.getId() + '" which conflicts with the passed in ' +
'id, "' + opt_id + '".');
}
// The variable already exists and has the same ID.
return variable;