Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/Script.js

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/sdk/Script.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/Script.js b/third_party/WebKit/Source/devtools/front_end/sdk/Script.js
index b4a3e1f46bd7b3a908c395fab8da756695d5cb1f..1f465ff590c4573adaff3a724a8c6e66ab24e610 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/Script.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/Script.js
@@ -57,13 +57,13 @@ WebInspector.Script = function(debuggerModel, scriptId, sourceURL, startLine, st
this._isLiveEdit = isLiveEdit;
this.sourceMapURL = sourceMapURL;
this.hasSourceURL = hasSourceURL;
-}
+};
/** @enum {symbol} */
WebInspector.Script.Events = {
ScriptEdited: Symbol("ScriptEdited"),
SourceMapURLAdded: Symbol("SourceMapURLAdded")
-}
+};
WebInspector.Script.sourceURLRegex = /^[\040\t]*\/\/[@#] sourceURL=\s*(\S*?)\s*$/m;
@@ -86,7 +86,7 @@ WebInspector.Script._trimSourceURLComment = function(source)
if (sourceURLLine.search(WebInspector.Script.sourceURLRegex) === -1)
return source;
return source.substr(0, sourceURLLineIndex) + source.substr(sourceURLLineIndex + sourceURLLine.length + 1);
-}
+};
/**
* @param {!WebInspector.Script} script
@@ -112,7 +112,7 @@ WebInspector.Script._reportDeprecatedCommentIfNeeded = function(script, source)
var text = WebInspector.UIString("'//@ sourceURL' and '//@ sourceMappingURL' are deprecated, please use '//# sourceURL=' and '//# sourceMappingURL=' instead.");
var msg = new WebInspector.ConsoleMessage(script.target(), WebInspector.ConsoleMessage.MessageSource.JS, WebInspector.ConsoleMessage.MessageLevel.Warning, text, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, script.scriptId);
consoleModel.addMessage(msg);
-}
+};
WebInspector.Script.prototype = {
/**
@@ -344,4 +344,4 @@ WebInspector.Script.prototype = {
},
__proto__: WebInspector.SDKObject.prototype
-}
+};

Powered by Google App Engine
This is Rietveld 408576698