Promise.all arguments is null or undefined
Closed this issue · 1 comments
OhadTs1985 commented
Hi,
I've noticed that when running the following code on browsers that supports promises and browsers that doesn't support (with this the polyfill) i get a different result:
Promise.all(null) .then(function () { console.log('then'); }) .catch(function (e) { console.log('catch', e); });
Supported browsers result:
Calling the 'catch' statement with an error of 'TypeError'.
Unsupported browsers (with the polyfill):
Throws an error on the arguments slice, doesn't call the 'catch' statement.
Is this the behavior aimed for in this polyfill?
Thanks,
taylorhakes commented
It should behave the same. Would you mind creating a pull request?