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

@@ -213,7 +213,7 @@ Blockly.Workspace.prototype.addTopComment = function(comment) {
Blockly.Workspace.prototype.removeTopComment = function(comment) {
if (!Blockly.utils.arrayRemove(this.topComments_, comment)) {
throw Error('Comment not present in workspace\'s list of top-most ' +
'comments.');
'comments.');
}
// Note: If the comment database starts to hold block comments, this may need
// to move to a separate function.