1 var global = require('../internals/global');
2 var isPrototypeOf = require('../internals/object-is-prototype-of');
4 var TypeError = global.TypeError;
6 module.exports = function (it, Prototype) {
7 if (isPrototypeOf(Prototype, it)) return it;
8 throw TypeError('Incorrect invocation');