Subj : Rhino, extracting functions from a script? To : netscape.public.mozilla.jseng From : Laurens Date : Sun Aug 15 2004 02:19 pm Hi, Is it possible to extract Functions from a given Script? I know it's possible to compile source code to a Function using Context.compileFunction. What I want, however, is to compile a JavaScript file containing multiple functions and reuse the Functions instances across different Scopes in my application. More specifically, I want to offer my users the ability to create a custom script with common utility functions. These functions should be available whenever a script runs. Thanks -Laurens .