github-pages-deploy-action/node_modules/core-js-pure/internals/an-instance.js

6 lines
185 B
JavaScript
Raw Normal View History

2020-03-07 11:45:40 +08:00
module.exports = function (it, Constructor, name) {
if (!(it instanceof Constructor)) {
throw TypeError('Incorrect ' + (name ? name + ' ' : '') + 'invocation');
} return it;
};