On Fri, Nov 23, 2018 at 9:33 AM Gautham B A <gautham.bangal...@gmail.com> wrote: > Thank you. I'm using v8 5.9.211. It doesn't have the > EscapableHandleScope::EscapeMaybe() function. Is there any other way to > achieve this?
Sure, just check if the handle is non-empty: Local<Value> value; if (maybe_value.ToLocal(&value)) handle_scope.Escape(value); Callers of your function should check the return value for .IsEmpty(). -- -- 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.