title: Bug in how Chrome console displays an object's class' name?
body: <p>What exactly is the text that Chrome console displays when I <code>console.log</code> an object <code>o</code>? (What is &quot;F1&quot; in &quot;F1 {}&quot; on the screenshot below?)</p>
  <p>I thought it should show <code>Object.getPrototypeOf(o).constructor.name</code>, but if I am right, why doesn't it change to &quot;F2&quot; on the second screenshot? Is it a bug in Chrome?</p>
  <pre><code>function F1(){}
  function F2(){}
  var o = new F1;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/3eV6R.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3eV6R.png" alt="enter image description here" /></a></p>
  <pre><code>Object.getPrototypeOf(o).constructor=F2;
  </code></pre>
  <p><a href="https://i.stack.imgur.com/u91XD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u91XD.png" alt="enter image description here" /></a></p>