you can get the ScriptOrigin from a v8::Function via GetScriptOrigin. You
can also ToString a function to get the source, but you could as well
create a global to the source.

On Wed, Oct 12, 2016 at 12:49 AM Zac Hansen <xax...@gmail.com> wrote:

> I'd like to keep around the data in a v8::ScriptCompiler::Source object,
> but I see it has v8::Local objects in it, which means I can't just make a
> Global out of it (right?).
>
> Is there some way to reacquire that object later or to keep it around
> indefinitely (outside of a handle scope)?
>
> Thank you.
>
> --Zac
>
> --
> --
> 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.
>

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

Reply via email to