an-instance.js 236 B

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