On Mon, Sep 2, 2013 at 6:21 PM, Mike Moening <[email protected]> wrote:
> I could except the function argument to the execut method is optional.
> If the argument exists I covert it. Otherwise I don't
> Using the explicit constructor would cause a scoping issue.
How about this?
Local<Function> fun;
if (args[0]->IsFunction()) {
fun = args[0].As<Function>();
}
// ...
if (fun.IsEmpty() == false) {
fun->Call(...);
}
--
--
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/groups/opt_out.