massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / require-object-coercible.js
1 var global = require('../internals/global');
2
3 var TypeError = global.TypeError;
4
5 // `RequireObjectCoercible` abstract operation
6 // https://tc39.es/ecma262/#sec-requireobjectcoercible
7 module.exports = function (it) {
8   if (it == undefined) throw TypeError("Can't call method on " + it);
9   return it;
10 };