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
Fixed in [email protected].
[email protected]
In this example, we have 2 promises, so triggered 2 events. Need to check HTML spec for confirming which behaviour is correct.
@zloirock the ES spec is ambiguous about this
Most helpful comment
Fixed in
[email protected].