title: setter being called in a recursive loop
body: <p>I have a Javascript class, which goes:</p>
  
  <pre><code>class mockUser {
    constructor (
      location,
     ) {
      this.location = location;
    }
  
    set location (data) {
      this.location = data; // here's the problem
    }
  }
  </code></pre>
  
  <p>But when I try to use the <code>set</code> keyword I get a warning, saying <code>Function location recurses indefinitely and can only end by throwing an exception</code>. Why is that?</p>
  
  <p>I mean I could do</p>
  
  <pre><code>  setLocation (data) {
      this.location = data; // here's the problem
    }
  </code></pre>
  
  <p>But what's the point of <code>set</code> then? </p>
  
  <p>I guess I misunderstood something.</p>