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

Unified Diff: Source/bindings/core/v8/V8PersistentValueMap.h

Issue 412843003: When overwriting a persistent handle, actually overwrite it (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/bindings/core/v8/V8PersistentValueMap.h
diff --git a/Source/bindings/core/v8/V8PersistentValueMap.h b/Source/bindings/core/v8/V8PersistentValueMap.h
index 636da2228e2483c8c1379794066ac334e021e59a..12d9579528de9aef10b6986473970e4198d08495 100644
--- a/Source/bindings/core/v8/V8PersistentValueMap.h
+++ b/Source/bindings/core/v8/V8PersistentValueMap.h
@@ -65,7 +65,7 @@ public:
Impl* impl, KeyType key, v8::PersistentContainerValue value)
{
v8::PersistentContainerValue oldValue = Get(impl, key);
- impl->add(key, value);
+ impl->set(key, value);
return oldValue;
}
static v8::PersistentContainerValue Get(const Impl* impl, KeyType key)
« 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