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

Unified Diff: Source/core/dom/WeakNodeMap.cpp

Issue 365633003: WeakNodeMap should have an ASSERT for node in WeakNodeMap::put() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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: Source/core/dom/WeakNodeMap.cpp
diff --git a/Source/core/dom/WeakNodeMap.cpp b/Source/core/dom/WeakNodeMap.cpp
index 34296c004b7b6b79082e1530b7a727e54c1cc1c6..5d5a11b14b5de2ac43a2c4c9a0c7f9dcb6ab1fc8 100644
--- a/Source/core/dom/WeakNodeMap.cpp
+++ b/Source/core/dom/WeakNodeMap.cpp
@@ -70,7 +70,7 @@ WeakNodeMap::~WeakNodeMap()
void WeakNodeMap::put(Node* node, int value)
{
- ASSERT(!m_nodeToValue.contains(node));
+ ASSERT(node && !m_nodeToValue.contains(node));
m_nodeToValue.set(node, value);
m_valueToNode.set(value, node);
« 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