Sorry if this would have been more appropriate on v8-dev but just downloaded the latest and greatest 4.9 commit and discovered that Callee is no longer available in FunctionCallBackInfo. While I'm sure there was a good reason for this, my sample size of one embedder registers one "ouch". Dunno if this affects any other embedders but I guess this is a head's up in case anyone wants to check.
I currently use Callee as a convenience when passing around FunctionCallBackInfo: for adding the function name to a Throw or as debugging information it's very convenient. Callee is also very useful in the common pattern of allowing a constructor to be called without a New and invoking it as a constructor under the covers: args.Callee()->NewInstance(argc, argsForConstructor). The former use is easy to work around but painful as I now need to add an extra parameter to a ton of internal C++ methods. The latter is more challenging as I now need to add a persistent reference to all my C++ constructors. I guess I'll just suck it up but if this affects anyone else one way to help people deal with this would be to keep a weak reference in the Isolate to last C++ function called that's made available via something like isolate->LastCallee(). I'd be happy to submit a project to add such a call (obviously on purely selfish grounds) but I suspect it would be (justifiably) rejected if I'm the world's only user of Callee. So are there any others out there? Thanks -- -- 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/d/optout.