Tcsm
2023-07-18 b34fbeffb0d128b75ec0a91acf7fe8ac3816c597
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;
};