0

Chrome defines a method on Promise "defer", but this is not in the spec - is this non-standard?

In Chrome:

typeof Promise.defer === 'function' // true

But I cannot see anything in the ES2015 spec mentioning this API. Presumably this is vestigial?

Chrome version: 51.0.2704.103 m

Ben Aston
  • 53,718
  • 65
  • 205
  • 331
  • Which versions of chrome have you tried `javascript` at Question at? – guest271314 Jul 05 '16 at 09:22
  • 2
    Seems to be [non-standard](http://stackoverflow.com/questions/27889687/promise-defer-browser-support). Why was it removed? _It's worth mentioning why it was removed - the promise constructor is throw safe unlike the deferred. If you throw in the scope of the promise constructor it will convert it to a rejection for you._ –  Jul 05 '16 at 09:24
  • If it's not in the spec, then it is non-standard, yes. (It's in none of the other standards either, if that is what you mean) – Bergi Jul 05 '16 at 09:29
  • @Bergi "It's in none of the other standards" - please can you clarify? – Ben Aston Jul 05 '16 at 09:31
  • 1
    You asked whether it is in any standard, I said that it is in none. (There are more standards than the ES2015 spec) – Bergi Jul 05 '16 at 09:32
  • Ah so 3, 5.1, 6 (2015), 7 (2016) etc – Ben Aston Jul 05 '16 at 09:34

0 Answers0