projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
e4dfad3d0083267ba4f8803f6a1d25f503124902
[yaffs-website]
/
modules
/
_an-instance.js
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
};