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 <[email protected]> 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
[email protected]
http://groups.google.com/group/v8-users

Reply via email to