TypeError
JavaScript: Type Error
This type implements the API surface of a TypeError
exception raised within the context of an executing JavaScript guest. TypeError
instances are typically raised when a value is passed to a function or operation that is not of a legal or valid type.
Further reading
For more information about the expected behavior and API surface of a TypeError, see the following resources:
See also
for the host base interface type of all JavaScript exceptions.
for the top-most guest-exposed base class for all JavaScript errors.