Tcsm
2023-09-19 b35a804358de7849f42bcdae934c236d13e3f233
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;
};