-
Notifications
You must be signed in to change notification settings - Fork 80
Description
Describe the bug
In some circumstances I've seen SES error censorship produce an error with a falsy value as message and a stack containing only references to SES concole implementation. Other times it corrupts the error message.
All examples I found to date seem related to errorTrapping implementation
I'll collect ways to reproduce it in this issue.
1. broken functionality
1.1. when opening a html file via file:// protocol with invalid syntax in a script, error gets censored to nothing. errorTrapping: "none" prevents the issue.
1.2. When a multiline message is thrown in Node.js, SES will print all lines of the message, except first, twice.
(does not happen in the browser)
test2.tar.gz
2. bad UX
2.1. The Error("",{ cause: e }) output can be considered correct, but differs between errorTrapping default, errorTrapping: "none" and no lockdown at all.
2.2. console output of unhandled rejections is not compatible with browsers
async function que() {
throw Error('karramba')
}
que()
2.2.1. FireFox: the original uncaught error in promise is reported first, the SES version after a few seconds
2.2.2. Both FireFox and Chromium: 3 console lines each are an error with a misleading stacktrace.
