On Tue, Aug 2, 2016 at 1:44 PM, Jack <[email protected]> wrote: > Ok I figured out I need to use: > Local<External> self = External::New(isolate, (void *) this); > > However I can't figure out how to extract the pointer again in the function. > How do I cast the Local<External> returned by args.Data() back to MyClass *
auto data = args.Data().As<v8::External>(); auto self = static_cast<MyClass*>(data->Value()); -- -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
