Re: [v8-users] Change (and Dispose) object allocated with External::New

2014-07-29 Thread Sven Panne
On Mon, Jul 28, 2014 at 6:19 PM, fabio...@gmail.com wrote: How can I change (and dispose) an object allocate with External::New ? [...] The External objects are immutable wrappers around void*, so you can't change these. Using SetInternalField to overwrite the previous field with a new

[v8-users] Change (and Dispose) object allocated with External::New

2014-07-28 Thread fabioang
Hi, How can I change (and dispose) an object allocate with External::New ? Assuming I have the following code: SessionBridge* session_ptr = new SessionBridge(session); //create a pointer to a class template HandleFunctionTemplate point_templ = FunctionTemplate::New(isolate);