UNPKG

254 BJavaScriptView Raw
1'use strict';
2var isPrototypeOf = require('../internals/object-is-prototype-of');
3
4var $TypeError = TypeError;
5
6module.exports = function (it, Prototype) {
7 if (isPrototypeOf(Prototype, it)) return it;
8 throw new $TypeError('Incorrect invocation');
9};