>From the Arguments object passed to your C++ implementation of CppSomeMethod you can fetch the callee, and from that function you can retrieve the ScriptOrigin hrough the API GetScriptOrigin().
There is also the V8 API StackTrace::CurrentStackTrace() which you can use in CppSomeMethod, and then examine the top JavaScript frame to find the name of the script of the calling function. Regards, Søren On Fri, Oct 1, 2010 at 03:36, DAldridge <[email protected]> wrote: > Typo in post title: should be "Fetch script origin...", not "Fetch > script context..." > > -- > v8-users mailing list > [email protected] > http://groups.google.com/group/v8-users > -- v8-users mailing list [email protected] http://groups.google.com/group/v8-users
