mirror of
https://github.com/google/blockly.git
synced 2026-01-08 17:40:09 +01:00
Replace ReferenceError with Error.
Change to 4-space indentation rather than aligning with parent structure.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user