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

Unified Diff: Source/WebCore/inspector/front-end/utilities.js

Issue 12208136: Merge 142128 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 10 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 | « LayoutTests/inspector/map-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/inspector/front-end/utilities.js
===================================================================
--- Source/WebCore/inspector/front-end/utilities.js (revision 142660)
+++ Source/WebCore/inspector/front-end/utilities.js (working copy)
@@ -705,9 +705,11 @@
remove: function(key)
{
var result = this._map[key.__identifier];
+ if (!result)
+ return undefined;
+ --this._size;
delete this._map[key.__identifier];
- --this._size;
- return result ? result[1] : undefined;
+ return result[1];
},
/**
« no previous file with comments | « LayoutTests/inspector/map-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698