javascript – JS how to convert to string the Error Object from the window.error?

javascript – JS how to convert to string the Error Object from the window.error?

Error object have a .message property containing the full message (no need for .toString(). There is also .stack but its not a standardized property.

It seems that the Error Object has a property called stack. so, e.stack is the full text of the error.

javascript – JS how to convert to string the Error Object from the window.error?

Leave a Reply

Your email address will not be published. Required fields are marked *