Difficult to diagnose circular JSON
问题 I have an error in my error handler :) Uncaught TypeError: Converting circular structure to JSON . I suspect that there is another exception thrown inside the JSON.stringify call and that is what is causing it? I certainly can't see how err_msg , err_url , or err_line could refer to themselves somehow. Is there a way I can protect this code from becoming circular? Does anyone have some insight into exactly why this error is arising? window.onerror = function myErrorHandler(err_msg, err_url,