On Tue, May 15, 2018 at 12:26 PM, Gautham B A
<
gautham....@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