paulmillr / es6-shim

ECMAScript 6 compatibility shims for legacy JS engines
http://paulmillr.com
MIT License
3.11k stars 387 forks source link

Update `Promise.reject` to match official ECMA-262 spec. #352

Closed cscott closed 9 years ago

cscott commented 9 years ago

There was a last-minute change to Promise.reject to make it better match Promise.resolve. See: http://www.ecma-international.org/ecma-262/6.0/#sec-promise.reject

ljharb commented 9 years ago

I'll merge this now, but can you follow up with a test that covers this?