_an-instance.js 237 B

12345
  1. module.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. };