$.strict-new.js 152 B

1234
  1. module.exports = function(it, Constructor, name){
  2. if(!(it instanceof Constructor))throw TypeError(name + ": use the 'new' operator!");
  3. return it;
  4. };