Invoke a constructor with the help of typeof
<p>I'm attemping a bit of a dance to get some classical polymorphism in javascript; something like</p>

<pre><code>function Inherit(base, sub) {
   var baseType = typeof base;
   sub.prototype = new baseType();
}
</code></pre>

<p>Anyone have a clue as to how to do this without having to new up base prior to passing it in?</p>
