annnhan/promise

Promise.all 方法缺少new 关键字

Opened this issue · 2 comments

Hucy commented

Promise.all = function (arr) {
return Promise(function (resolve, reject) {
改为:
Promise.all = function (arr) {
return new Promise(function (resolve, reject) {

zcxcn commented

缺少new