Subj : Re: Sealing Scopes To : netscape.public.mozilla.jseng From : vige46 Date : Fri Oct 08 2004 08:36 am Thanks for input. I need to seal sharedScope before evaluating contexts. I even don't know, how many scopes will I have... Thus, I assume that if I seal sharedScope and set it as prototype, it should work. Even if creating new property on local scope( which has sharedScope as prototype). "Merten Schumann" wrote in message news:... > try to seal the scope later, after you have create it's "child" ... > works for me, I'm using it this way to have a sealed "root" scope to > force people to use "var" variables (local) instead of globals > > root > pseydo-root (seal root after pseydo-root is installed) > user-scope1 > user-scope2 > ... > In this way my user scopes can work but have no globals, that's what I > want > > Hope this helps > Merten .