Inheritance diagram for TypeError:
This error is thrown by the interpreter to indicate that the actual type of an operand is different than the expected type. See the ECMA script specification for more information.