javascript-errors-notifier icon indicating copy to clipboard operation
javascript-errors-notifier copied to clipboard

Calling Console.error with Object containing circular references breaks Site

Open JavaScriptDude opened this issue 1 year ago • 0 comments

If you have this extension enabled and call console.error with an object that has circular references, JSON.stringify() call in window.console.error will fail with 'cyclic object value' Error.

This error condition will break the code that called console.error causing it to stop.

The fix is easy, put in error handling around your custom window.console.error code.

JavaScriptDude avatar Feb 19 '25 21:02 JavaScriptDude