You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Catching it in synchronous code and logging via console.log(error, error.message, error.trace) yields [class u extends Error] undefined undefined.
The message is undefined, and the minified class name does not help too much either.
Receiving it as an unhandled rejection is a little bit better:
The promise rejected with the reason "class u extends Error{constructor(){super("Property does not exist in the object")}}".
This is still wrong in multiple ways, but at least I could identify the Error.
Lastly, if it worked properly, I think the error message should contain the name of the undefined property, in order to make the message hold useful information.
Catching it in synchronous code and logging via
console.log(error, error.message, error.trace)
yields[class u extends Error] undefined undefined
.The
message
isundefined
, and the minified class name does not help too much either.Receiving it as an unhandled rejection is a little bit better:
This is still wrong in multiple ways, but at least I could identify the Error.
Lastly, if it worked properly, I think the error message should contain the name of the undefined property, in order to make the message hold useful information.
Code to reproduce:
The text was updated successfully, but these errors were encountered: