Open devtools, paste isPrototypeOf({}); into console, run the code and you will get:
Uncaught TypeError: Cannot convert undefined or null to object
I think the error message tells us: this in iSprototypeof является неопределенным . Но почему? Почему эта замена не происходит в этой ситуации? Почему это не окно ?
Подробнее здесь: https://stackoverflow.com/questions/796 ... -typeerror