We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When chaining promises using then the behavior between Chrome's native onunhandledrejectionhandler and core-js' implementation differ.
then
onunhandledrejectionhandler
Promise.reject(43).then(x => x); will invoke the handler twice in core-js and once in Chrome. I suppose Chrome's behavior is correct.
Promise.reject(43).then(x => x);
demo
The text was updated successfully, but these errors were encountered:
In this example, we have 2 promises, so triggered 2 events. Need to check HTML spec for confirming which behaviour is correct.
Sorry, something went wrong.
@zloirock the ES spec is ambiguous about this
4024915
Fixed in core-js@2.5.3.
core-js@2.5.3
No branches or pull requests
When chaining promises using
then
the behavior between Chrome's nativeonunhandledrejectionhandler
and core-js' implementation differ.Promise.reject(43).then(x => x);
will invoke the handler twice in core-js and once in Chrome.I suppose Chrome's behavior is correct.
demo
The text was updated successfully, but these errors were encountered: