Subj : Object reference graph: is there a way? To : netscape.public.mozilla.jseng From : anton muhin Date : Tue Aug 31 2004 05:27 pm Dear gurus, Is there a way to find out all the object that directly (or indirectly) reference the given object with SpiderMonkey's api? Example: var o1 = new Object() var o2 = new Object() var o3 = new Object() var o4 = new Object() o4.foo = o2 o4.bar = o3 o2.foo = o1 o3.bar = o1 For o1 I want to know that it is referenced by o2 & o3, and, indirectly, by o3. I suppose that there could be a way as this issue seems to be related to gabage collecting. The problem I'm trying to solve is notification on objects modification. with the best regards, anton. .