title: How to change Object.prototype.toString?
body: <p>I have a class:</p>
  
  <pre><code>class Test{
      contructor(){
         this.x = "test"
      }
  } 
  
  var t = new Test()
  
  var toString = Object.prototype.toString
  console.log(toString.call(t))
  </code></pre>
  
  <p>the log prints <code>[object Object]</code>, i would like it to print something like <code>[object Test]</code>, how can i do that? I tried doing</p>
  
  <pre><code>Test.prototype.toString = function() {
      return  "[object Test]"
  }
  </code></pre>
  
  <p>but that didn't work, any help?</p>