Subj : Re: disabling toString() and toSource() for functions To : bubbfree From : Brendan Eich Date : Mon Jan 17 2005 06:46 pm bubbfree@gmail.com wrote: > I have some encrypted functions that users can load into the scripting > environment (decrypted before passing onto SpiderMonkey of course). > > Is there a way to disable the toString() and toSource() functions for > these imported functions? So that users can't see the source code of > those functions? No, not just for those functions. You would have to meddle with the guts of the code that run for all functions converted to string or to source. /be .