Is there a way to catch SyntaxError[s] thrown by the browser?
I have an angular app that introduced a negative lookbehind regex and broke compatabiliity with safari 15.6. We want to still support that version and have reverted to using compatible regex that it likes however this question is more about the code that throws the SyntaxError
and how if possible can the I catch the error and then handle appropriately instead of serving the white screen of death.