undefined typeinfo in javascript code example Example: undefined reference to `typeinfo virtual void foo() =0; //add = 0