Subj : Re: Iterate all functions in script To : netscape.public.mozilla.jseng From : Sterling Bates Date : Thu May 06 2004 03:02 pm Forest Carlisle wrote: > I would like to build a list of all the functions declared a script. I > know I can get a function by name with JS_GetProperty for a given object > and then call JS_GetPrivate to get the JSFunction*, and finally call > JS_GetFunctionId to get the function name. > > Is there a way to get all the properties of a given object? Look up the JS_Enumerate API. http://www.mozilla.org/js/spidermonkey/apidoc/sparse-frameset.html Sterling .