SO Question - JS Multiple Inheritance

http://stackoverflow.com/questions/7373644/javascript-multiple-inheritance

JavaScript

function C(x){if(!x) throw new Error;}
function D(){}
function fakeCtor(){/*should be noop*/}
fakeCtor.prototype = C.prototype;
D.prototype = new fakeCtor;

var d = new D;

console.assert(d instanceof C, 'd is not instance of C');