blob: c0a5f9200c15378e4e21b8ab5fb27206bf26b216 [file] [log] [blame]
module.exports = function (it, Constructor, name, forbiddenField) {
if (!(it instanceof Constructor) || (forbiddenField !== undefined && forbiddenField in it)) {
throw TypeError(name + ': incorrect invocation!');
} return it;
};