You can also use setters to figure out where a mutation on a specific property is coming from:
varperson={name:'foobar'};varname=person.name;Object.defineProperty(person,'name',{set(value){console.trace('Changing to value: %s',value);name=value;}get(){returnname;}});
This way you don't need to put use strict everywhere to find the culprit.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You can also use setters to figure out where a mutation on a specific property is coming from:
This way you don't need to put
use strict
everywhere to find the culprit.