One-line name: message rendering, the shape devtools shows.
An empty message renders as just the name rather than leaving a dangling
colon, so new Error() reads Error and not Error: .
Never throws — a throwing name/message accessor must not break the
console renderers, which previously guarded every property read via the
try/catch around JSON.stringify.
One-line
name: messagerendering, the shape devtools shows.An empty message renders as just the name rather than leaving a dangling colon, so
new Error()readsErrorand notError:.Never throws — a throwing
name/messageaccessor must not break the console renderers, which previously guarded every property read via the try/catch aroundJSON.stringify.