On Thu, Feb 11, 2021 at 9:14 AM 'Vinayaka Kamath' via v8-users <v8-users@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/CAHQurc_6mEZo2%3DrLaymrCnACy0ygQn-s-7EeNuCDRwdFPyBAvg%40mail.gmail.com.