function myClass(){ try{ if( this.__proto__ !== myClass.prototype ){ throw Error("No New"); } }catch(e){ console.err(e); } }