blob: e4dfad3d0083267ba4f8803f6a1d25f503124902 [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;
};