1 var global = require('../internals/global');
2 var isConstructor = require('../internals/is-constructor');
3 var tryToString = require('../internals/try-to-string');
5 var TypeError = global.TypeError;
7 // `Assert: IsConstructor(argument) is true`
8 module.exports = function (argument) {
9 if (isConstructor(argument)) return argument;
10 throw TypeError(tryToString(argument) + ' is not a constructor');