paulmillr / es6-shim

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

`Set.prototype.add` does not always return `this` object #302

Closed Yaffle closed 9 years ago

Yaffle commented 9 years ago

see test case in https://github.com/kangax/compat-table/pull/314

ljharb commented 9 years ago

Thanks, Set#add should indeed return the this value per step 9 in https://people.mozilla.org/~jorendorff/es6-draft.html#sec-set.prototype.add