It seems that after saving off a Persistent copy of the function V8 doesn't 
think its a function anymore!


ASSERT(args[0]->IsFunction());  <--  This works.

Local<Function> funcProgress;
*funcProgress = Function::Cast(*args[0]);*
Persistent<Function> fnProgressCallack = 
Persistent<Function>::New(args.GetIsolate(), funcProgress);
*
*
*ASSERT(fnProgressCallack->IsFunction());  <--- This fails.*

What am I doing wrong here??

-- 
-- 
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.


Reply via email to