pub fn ordinary_has_instance(
obj: &Value,
ctor: &Value,
validate_rhs: bool,
) -> Result<bool, String>Expand description
OrdinaryHasInstance(C, O) (7.3.21) behind instanceof: the
prototype-chain walk with no Symbol.hasInstance lookup. validate_rhs is
the operator’s own step 4 — a right-hand side that is not callable is a
TypeError; reached through Function.prototype[Symbol.hasInstance] instead,
a non-callable C is simply false.