mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-29 23:50:00 +08:00
10 lines
286 B
JavaScript
10 lines
286 B
JavaScript
|
|
var global = require('../internals/global');
|
||
|
|
var isPrototypeOf = require('../internals/object-is-prototype-of');
|
||
|
|
|
||
|
|
var TypeError = global.TypeError;
|
||
|
|
|
||
|
|
module.exports = function (it, Prototype) {
|
||
|
|
if (isPrototypeOf(Prototype, it)) return it;
|
||
|
|
throw TypeError('Incorrect invocation');
|
||
|
|
};
|