-
-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parts of stack trace missing when promise rejects #32
Comments
It's because of the async-IIFE: Line 90 in 200df03
This is really just a limitation in JavaScript engines: https://stackoverflow.com/a/68081429/64949 |
I suppose you could just remove the IIFE and make the parent function |
|
When passing a promise to pTimeout that rejects,
error.stack
ends atp-timeout/index.js:92:13
Example 1:
Example 1 output:
Example 2:
Example 2 output:
In Example 1, these parts are missing from
error.stack
:The text was updated successfully, but these errors were encountered: