JS: avoid error with `this` expressions in assignments.