hexo/node_modules/core-js/modules/_an-instance.js

6 lines
242 B
JavaScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
module.exports = function (it, Constructor, name, forbiddenField) {
if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
throw TypeError(name + ': incorrect invocation!');
} return it;
};