hasInstance

open override fun hasInstance(instance: Scriptable): Boolean(source)

What instanceof asks once this object has no Symbol.hasInstance, which ScriptRuntime.instanceOf has already looked for: OrdinaryHasInstance for something that can be called, and a TypeError for anything else. Upstream looked the method up again here and called it with this object as its argument in place of instance, and walked instance's chain for this object itself rather than for its prototype.