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