David Bruant wrote:
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.

Just Say No.

/be
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to