On Tue, May 15, 2018 at 12:26 PM, Gautham B A
<gautham.bangal...@gmail.com> wrote:
> Thanks. So, once I have a non-empty v8::Local object (v8obj_json in this
> case), am I guaranteed that its value won't turn empty? - I'm asking this in
> the context of calling v8::V8::TerminateExecution(isolate). Please consider
> the following code -
>
> v8::Local<v8::Object> v8obj_json;
> if (!v8val_json.ToLocal(&v8obj_json)) { // v8val_json is a v8::MaybeLocal
>   return;
> }
>
> // Let's say we terminate the execution after getting a v8::Local object
> v8::V8::TerminateExecution(isolate);
>
> // Will v8obj_json become empty?
> auto field_zero = v8obj_json->Get(0);

That's a different question, with a different answer.  The handle
won't go empty when a termination exception is in effect but you
should nevertheless stop calling into V8 because that won't work
(reliably) when it's shutting down.

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