yz3456
2024-03-30 c0702fb50443fb03a4f5a7beb127294a17fc1dcd
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;
};