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

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js

Issue 2261933002: DevTools: Use JS symbols instead of strings for eligible events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/bindings/ResourceScriptMapping.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js
index 8b76231e13544c26be6e460800e0b46dbde5f27f..5a8e683a125c049e693a88650522eefc79974d61 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/ResourceScriptMapping.js
@@ -296,9 +296,10 @@ WebInspector.ResourceScriptFile = function(resourceScriptMapping, uiSourceCode,
this._uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.WorkingCopyCommitted, this._workingCopyCommitted, this);
}
+/** @enum {symbol} */
WebInspector.ResourceScriptFile.Events = {
- DidMergeToVM: "DidMergeToVM",
- DidDivergeFromVM: "DidDivergeFromVM",
+ DidMergeToVM: Symbol("DidMergeToVM"),
+ DidDivergeFromVM: Symbol("DidDivergeFromVM"),
}
WebInspector.ResourceScriptFile.prototype = {

Powered by Google App Engine
This is Rietveld 408576698