classinfo2nativeset-link
author Benjamin Smedberg <benjamin@smedbergs.us>
Sat, 26 Jul 2008 22:49:39 -0400
changeset 167 a4da40849f5436e629c5732f4368c6c48189637f
parent 110 d03021664afc7183bb3f54432dedaffc441e77ec
permissions -rw-r--r--
State as of now

* * *

diff --git a/js/src/xpconnect/src/xpcmaps.h b/js/src/xpconnect/src/xpcmaps.h
--- a/js/src/xpconnect/src/xpcmaps.h
+++ b/js/src/xpconnect/src/xpcmaps.h
@@ -376,6 +376,13 @@ public:
             return entry->value;
         entry->key = info;
         entry->value = set;
+
+        // Unless FindBeginning is blazingly fast, we should use
+        // dynamic_cast<void*> instead... but that requires refactoring some
+        // classes that are currently C++ classes, or perhaps having a
+        // GetBeginning method.
+        NS_GetGC()->Link(set, NS_GetGC()->FindBeginning(info));
+
         return set;
     }