On Sun, Sep 1, 2013 at 5:38 AM, Mike Moening <mike.moen...@gmail.com> wrote: > How do I convert an incoming argument to a Local<Function>? > It's basically a script progress callback function that I need to fire in > the calling script. > See the following stripped down example code in yellow which used to work: > > void > MyObject_execute(const FunctionCallbackInfo<Value>& args) > { > Local<Function> funcProgress; > funcProgress = Function::Cast(*args[0]); <--Error here. > } >
Switch to using (explicit) constructors? Local<Function> funcProgress(Handle<Value>(args[0])); --sigbjorn -- -- v8-users mailing list v8-users@googlegroups.com 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 v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.