On Sun, Oct 2, 2016 at 2:35 AM, Zac Hansen <
xax...@gmail.com> wrote:
> My understanding is a v8::Local<T> is only valid within a handlescope, so if
> you store one in an object, that object is then only valid within a
> handlescope, right?
Correct.
> For example, ScriptOrigin stores all its parameters as Local's:
>
>
http://v8.paulfryzel.com/docs/master/include_2v8_8h_source.html#l01028
>
> and then when I call for the ScriptID later, it's no longer valid and I get
> a memory error. Am I missing something about v8::Local? or something about
> how to use ScriptOrigin? Other types, like Script has a
> v8::Local<v8::UnboundScript>.. same question.
You aren't missing anything, that is how Locals works.