Ben, the Call() is inside a TryCatch, but seems like the call is not returning and just crashing even before the function Call is returning.
On Thursday, February 11, 2021 at 4:01:56 PM UTC+5:30 Ben Noordhuis wrote: > On Thu, Feb 11, 2021 at 9:14 AM 'Vinayaka Kamath' via v8-users > <v8-u...@googlegroups.com> wrote: > > > > Hello All, > > > > I am trying to run a simple function which will hit recursion limit. > > > > function foo(a) { > > return foo(a); > > } > > > > This is simple crashing the v8. I tried using both > > isolate->SetFatalErrorHandler(fatal_error_callback); > > isolate->SetOOMErrorHandler(oom_error_callback); > > > > But neither of them are invoked when the program crashes. Is there any > reliable way to make the program recursion free? I am using v8 8.3 BTW > > > > Thanks a lot! > > You can catch stack overflow exceptions with a regular v8::TryCatch. > -- -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/v8-users/66b0fc0d-b3e4-40c3-99fb-7070c8cfc652n%40googlegroups.com.