paulmillr / es6-shim

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

Documenting Object.assign pending exception #305

Closed ljharb closed 9 years ago

ljharb commented 9 years ago

Per https://twitter.com/sindresorhus/status/499462674439495680 and the ES6 spec, Object.assign is supposed to hold on to the first exception thrown, and continue iterating, and after every succeedable assignment is done, throw that first exception.

ljharb commented 9 years ago

Closed as a duplicate of https://github.com/ljharb/object.assign/issues/5

ljharb commented 9 years ago

Per today's TC39 meeting, Object.assign will no longer require holding on to a pending exception - which makes the shim correct as-is.