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

Unified Diff: third_party/WebKit/Source/devtools/front_end/common/CharacterIdMap.js

Issue 2753543004: DevTools: CharacterIdMap should be able to return empty string (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/common/CharacterIdMap.js
diff --git a/third_party/WebKit/Source/devtools/front_end/common/CharacterIdMap.js b/third_party/WebKit/Source/devtools/front_end/common/CharacterIdMap.js
index dedb0b051a90d897c7ec151e20efb9ba0ae01418..794218d3afa1ad166da7ae4cb8203e398c742440 100644
--- a/third_party/WebKit/Source/devtools/front_end/common/CharacterIdMap.js
+++ b/third_party/WebKit/Source/devtools/front_end/common/CharacterIdMap.js
@@ -35,6 +35,9 @@ Common.CharacterIdMap = class {
* @return {?T}
*/
fromChar(character) {
- return this._characterToElement.get(character) || null;
+ var object = this._characterToElement.get(character);
+ if (object === undefined)
+ return null;
+ return object;
}
};
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698