massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / internals / a-possible-prototype.js
1 var global = require('../internals/global');
2 var isCallable = require('../internals/is-callable');
3
4 var String = global.String;
5 var TypeError = global.TypeError;
6
7 module.exports = function (argument) {
8   if (typeof argument == 'object' || isCallable(argument)) return argument;
9   throw TypeError("Can't set " + String(argument) + ' as a prototype');
10 };