title: RangeError: Maximum call stack size exceeded when debugging/logging/inspecting an Object in Node.js
body: <p>Given a class definition as below, I am getting <code>RangeError: Maximum call stack size exceeded</code> when trying to see which properties the Object has.</p>
  
  <pre><code>var Person = (function () {
      function Person(name, age) {
          this.name = name;
          this.age = age;
      }
      Person.prototype.inspect = function () {
          console.log(this);
      };
      return Person;
  })();
  
  var radek = new Person("Radek", 28);
  radek.inspect();
  </code></pre>
  
  <p>In browser (Chrome), we will get the following though:</p>
  
  <pre><code>Person {name: "Radek", age: 28, inspect: function}
  </code></pre>