Closed andyremi closed 2 years ago
I've resolved this issue but there is another issue. Since I was wrapping a same pointer for two different v8::Object instances, above message was occurred. To resolve that issue, I have to use v8pp::class_
static void destroyed(const v8::WeakCallbackInfo
Local
Is there a way to make a JS variable destroyed automatically & immediately when the local block in JS is finished so that above 'destroyed' function can be called?
Hi,
Is there a way to make a JS variable destroyed automatically & immediately when the local block in JS is finished so that above 'destroyed' function can be called?
I don't know such a way. V8 manages objects lifetime in JavaScript. Wrapped C++ objects that were created for a v8pp::class_<SomeMy>
will be occasionally garbage collected by the V8, unless you have manually v8pp::class_::unreference()
for a wrapped C++ object.
Hello, I get an error like following when I give V8 a wrapped object: