Skip to content
JS
JavaScript error

TypeError

The JavaScript exception "invalid 'instanceof' operand" occurs when the right-hand side operands of the instanceof operator isn't used with a constructor object, i.e., an object which has a prototype property and is callable.

Reference entryJavaScriptFetched
TypeError: Right-hand side of 'instanceof' is not an object (V8-based)
As listed by MDN Web Docs
TypeError: invalid 'instanceof' operand "x" (Firefox)
As listed by MDN Web Docs
TypeError: Right hand side of instanceof is not an object (Safari)
As listed by MDN Web Docs
TypeError: Right-hand side of 'instanceof' is not callable (V8-based)
As listed by MDN Web Docs
TypeError: x is not a function (Firefox)
As listed by MDN Web Docs
TypeError: x is not a function. (evaluating 'x instanceof y') (Safari)
As listed by MDN Web Docs
TypeError: Function has non-object prototype 'undefined' in instanceof check (V8-based)
As listed by MDN Web Docs
TypeError: 'prototype' property of x is not an object (Firefox)
As listed by MDN Web Docs
TypeError: instanceof called on an object with an invalid prototype property. (Safari)
As listed by MDN Web Docs
Category
TypeError
Severity
error
Runtime
both
or press Cmd/Ctrl + Enter. The text is only sent to this site to match it.
Source: MDN Web Docs. Data fetched 2026-09-25T01:48:37.274Z.