Subj : Re: Rhino - looking for ways to reset a scope.txt To : netscape.public.mozilla.jseng From : Brendan Eich Date : Wed Aug 27 2003 09:21 pm Ariel Malka wrote: > Note: by reseting the scope, I mean essentially clearing all the > user-defined variables, functions, etc. that have been created during > a previous execution. > > Any clues? Thanks! Doesn't Rhino support sealing objects, so that they can't be modified (property id added or removed; or existing property value changed)? If so, make a "superglobal", initStandardObjects it, seal it, and use it as the prototype of each execution's global object. /be .