>> 1) You cant have a Global object that doesn't have Object, Array, or String. Those are built-in to the language as Native objects and part of ECMA. Hmmm. Does V8 have the notion of a "var Object"? >>2) Don't set the Prototypes of each of the session Global objects on entering the Context, I'm setting the prototype of the request global, not the session.
>>instead set them before they become Global Context objects by creating FunctionTemplates for them, link the FunctionTemplate's prototype to the Global Session's by using FunctionTemplate::Inherit, and then grab the ObjectTemplate from that FunctionTemplate and provide it to the Context Constructor. That was way over my head. I'm a spidermonkey vet but a V8 newbie. Can you rework the example I provided? In case I didn't explain it well enough...I'm trying to use the session global as a place to store objects, functions & properties that must persist across many requests. It's not a one time setup. Users can set properties on the session by doing this Session.myprop = 123; However, in this example the "s" var must not be saved and should die after the request completes. var s = "don't save me"; -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
