ReferenceError: Invalid left-hand side in assignment when really assigning a value
ReferenceError: Invalid left-hand side in assignment when really assigning a value Why does this snippet in node (10.5) .then(function() { this = {...this, ...payload}; this.update(); resolve({ok:true, node}); }); gives the following error: ReferenceError: Invalid left-hand side in assignment the payload holds a few properties that need to be added to this or if the property exists the property needs to be updated. this I do not understand why there is this error :( You cannot assign this . Some more details : stackoverflow.com/questions/9713323/… – Seblor Jun 29 at 8:47 this 1 Answer 1 Well the Error is staightforward and says Invalid left-hand side in assignment , it means that you are using a wrong el...
