require-object-coercible.js 302 B

12345678910
  1. var global = require('../internals/global');
  2. var TypeError = global.TypeError;
  3. // `RequireObjectCoercible` abstract operation
  4. // https://tc39.es/ecma262/#sec-requireobjectcoercible
  5. module.exports = function (it) {
  6. if (it == undefined) throw TypeError("Can't call method on " + it);
  7. return it;
  8. };