Re: [v8-users] How to retain or reacquire v8::ScriptCompiler::Source object?

2016-10-18 Thread Jochen Eisinger
You'll need to keep a reference to the source yourself - either pass the string as an external string resource to v8 in the first place, or keep a persistent handle to the string. On Wed, Oct 12, 2016 at 10:38 AM Zac Hansen wrote: > the stringification of a function doesn't get me back the entir

Re: [v8-users] How to retain or reacquire v8::ScriptCompiler::Source object?

2016-10-12 Thread Zac Hansen
the stringification of a function doesn't get me back the entire source though. That's what I need to send to chrome for debugging. On Wednesday, October 12, 2016 at 12:17:20 AM UTC-7, Jochen Eisinger wrote: > > you can get the ScriptOrigin from a v8::Function via GetScriptOrigin. You > can al

Re: [v8-users] How to retain or reacquire v8::ScriptCompiler::Source object?

2016-10-12 Thread Jochen Eisinger
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 wrote: > I'd like to keep around the data in a v8::ScriptCompiler::Source obj