Shuai Li
Shuai Li

Reputation: 2766

What's the difference between Promise/A+ specification and ECMA spec's Promise section?

ECMA Script already have a difinition about Promise, so is there a reason that Promise/A+ exits?

Upvotes: 3

Views: 186

Answers (1)

Jonas Wilms
Jonas Wilms

Reputation: 138367

Its actually the other way round. The Promise/A+ spec was written first and then implemented in JS using bluebird and other libraries. Then the authors of the ECMA spec saw a need to natively support it, and added it to the ES 6 spec. There is no real difference between them as the ES spec follows the A+ spec. source

Upvotes: 4

Related Questions