> Yep, looks good, except I still think you'll leak the context (see my > message above).
> BTW, I think "Persistent<Context>::New(Context::New())" creates > two persistent handles. To avoid a leak, I think you just want > to do "context = Context::New()". All the examples that I see suggest that Context::New() creates a local handle that is disposed on HandleScope exit and that Persistent<X>:New(h) makes a persistent copy of the handle passed to it: http://create.tpsitulsa.com/wiki/V8/Persistent_Handles -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
