generated from tc39/template-for-proposals
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Consider currently Promise.all({}) just throw, practically we could overload Promise.all:
const {a, b, c} = await Promise.all({a: getA(), b: getB(), c: getC()})Pros: No naming issue (Promise.allOwnProperties() is too lengthy)
Cons: Theoretically, people could add Object.prototype[Symbol.iterator] and change the behavior.
TomasHubelbauer, Haroenv, Akxe, acutmore, NuroDev and 7 morezhangenmingTomasHubelbauer, Akxe, karlhorky, rezonant, dtaub and 1 more
Metadata
Metadata
Assignees
Labels
No labels