qauMaWeb/node_modules/core-js/internals/an-instance.js

10 lines
286 B
JavaScript
Raw Normal View History

2024-10-13 18:02:27 +08:00
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');
};