On Mon, Jan 21, 2013 at 1:53 PM, ioannis <ioanni...@gmail.com> wrote:
> // (2) If args[0] is a global object then remove the object form > global scope > Local<Object> global = self->CreationContext()->Global(); > This part is not necessary. You already do: > // (3) Delete the c++ object and call its destructors > delete p; > > // (4) SetInternalField to null > self->SetInternalField(0, Null()); > which will (if your binding code takes some care) avoid the case that a client steps on a now-invalid native (or a _different_ native which was reallocated at the same address). But to answer your question: i can't. i don't think there is a way to do that. -- ----- stephan beal http://wanderinghorse.net/home/stephan/ http://gplus.to/sgbeal -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users