Open niloy opened 10 years ago
function AbstractClass() { if (Object.getPrototypeOf(this) === AbstractClass.prototype) { throw new Error("Sorry, you may not directly instantiate this class"); } }