Files
actual/node_modules/core-js/internals/an-instance.js
Rich In SQL 28d4ee94dd Init
2022-10-16 20:28:33 +01:00

9 lines
236 B
JavaScript

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