David Bruant (2014-02-18T18:07:37.000Z)
domenic at domenicdenicola.com (2014-02-21T16:26:39.091Z)
In practice, the returned value of setting is the value on the rhs of the =. var o = {set b(v){return 12;}} // this return statement is useless console.log(o.a = 13); // 13 console.log(o.b = 14); // 14 It might be useful to return a different value on setting. I think Haxe does it. Note that it would require to rework the set trap of proxies a bit (currently, it returns a boolean indicating success or failure). > Can we get the spec changed to return undefined? That would be the most coherent option with the language as it is today.