feige
2025-03-25 4eefd90c82210efa63f5620295af434212c060f9
1
2
3
4
5
module.exports = function (it, Constructor, name, forbiddenField) {
  if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
    throw TypeError(name + ': incorrect invocation!');
  } return it;
};