I have tried the above but i don;t think that it works correctly.
Have you found another way to set an Object to null ?

On Friday, 8 April 2011 19:29:04 UTC+3, mcot wrote:
>
> I think I solved my problem: 
>
> v8::HandleScope hndl_scope; 
> ... 
> ... 
> v8::Handle<v8::Object> obj = obj_templ->NewInstance(); 
> v8::Handle<v8::Value> n = v8::Null(); 
> obj->SetPrototype(n); 
> ... 
> ... 
> return hndl_scope.Close(obj); 
>
>
> Does this look reasonable? 
>
>
>
> On Apr 8, 10:24 am, mcot <atm1...@gmail.com> wrote: 
> > I am having trouble with setting the prototype of an object. 
> > Basically... v8::object->SetPrototype(v8::value), I want the prototype 
> > to be either null or undefined.  If I use a persistent handle for the 
> > undefined, when do I clean it up (Dispose)?

-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users

Reply via email to