I've encountered an error in monkey-patched console.error. Monkey-patching native functions is bad practice in general, but in this case, I got unexpected runtime crash while handling a failed case of try catch in my code.
I've added try/catch block inside the monkey-patched function, so it handles errors gracefully.
Please review.
This is first of the series of PR I'm making, based on my previous research and huge PR
I've encountered an error in monkey-patched console.error. Monkey-patching native functions is bad practice in general, but in this case, I got unexpected runtime crash while handling a failed case of try catch in my code.
I've added try/catch block inside the monkey-patched function, so it handles errors gracefully.
Please review.
This is first of the series of PR I'm making, based on my previous research and huge PR