From 9870c39857a984dc6a80ebe47a141f7e32bac959 Mon Sep 17 00:00:00 2001 From: Rintim Date: Thu, 14 Sep 2023 00:29:58 +0800 Subject: [PATCH] [2023/09/14: Inchar] solve the waitever. --- game/game.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game/game.js b/game/game.js index 7a110467a..ab80347b8 100644 --- a/game/game.js +++ b/game/game.js @@ -7845,7 +7845,8 @@ value:function allSettled(ary){ const Promise = this; return new Promise((resolve, reject) => { - if (Object.prototype.toString.call(arr) != "[object Array]") + // if (Object.prototype.toString.call(arr) != "[object Array]") + if (!Array.isArray(ary)) return reject(new TypeError(`${typeof arr} ${ary} is not iterable(cannot read property Symbol(Symbol.iterator))`)); let args = Array.prototype.slice.call(ary); if (args.length == 0) return resolve([]);