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