Subj : Custom finalization for functions To : netscape.public.mozilla.jseng From : Alain Frisch Date : Mon May 23 2005 12:50 pm Hello, I'm trying to embed SpiderMonkey in a language with a GC. I'd like to attach a custom finalization function to JS function objects (created e.g. by JS_NewFunction) in order to tell the host language's GC that the underlying functional object can be released. Is it possible to do so? I was considering to create a variant of js_FunctionClass but then the objects of this new class wouln't be recognized as valid function objects by JS, right? Alain .