Rick Waldron (2013-10-22T03:34:48.000Z)
domenic at domenicdenicola.com (2013-10-26T03:20:21.313Z)
On Mon, Oct 21, 2013 at 11:18 PM, Nathan Wall <nathan.wall at live.com> wrote: > Maybe `Object.assign` should only write the property when the object being > written to either doesn't contain it or it's a data property? Should it > really invoke any setters? If this were how it was defined, I would say get rid of it and practitioners will carry on using their own non-nanny implementations. If it can't invoke setters then it loses properties like innerHTML. eg. ```js Object.assign(div, { innerHTML: `<p>${name}</p>`, id: "an-id", dataset: { foo: 1, bar: 2 } }); ``` > Too bad it's too late to bring that `__proto__` ship back to the harbor > because that's where the real problem lies. It may be beneficial, in the long run, to make it painful to use `__proto__`.