Subj : Re: GC Question To : netscape.public.mozilla.jseng From : sukhisoul Date : Thu Jun 10 2004 07:02 am Brendan Eich wrote in message news:<40BE9C09.6040709@meer.net>... > > > > Yes, I need to create many objects and store them as array elements. > > > Do you need to create the array of objects in the getProperty hook, or > could you do it earlier, say in resolve? Then you could define it as > the value of the property identified by the id parameter to resolve, > before populating it with objects, and all would be safe from GC. > > /be I have always wanted to stuff an array in resolve hook, but I dont know how to replace the default resolver function of a *particular* array (created with JS_NewArrayObject())with my own resolver function. I could create a new special array class, but then I will have to duplicate all the functionality that is already there in the present array implementation. MA .