Files
est-frame/node_modules/core-js/internals/an-instance.js
2025-10-22 05:38:27 +00:00

10 lines
254 B
JavaScript
Executable File

'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');
};