projecte_ionic/node_modules/core-js-pure/internals/a-possible-prototype.js
2022-02-09 18:30:03 +01:00

11 lines
353 B
JavaScript
Executable file

var global = require('../internals/global');
var isCallable = require('../internals/is-callable');
var String = global.String;
var TypeError = global.TypeError;
module.exports = function (argument) {
if (typeof argument == 'object' || isCallable(argument)) return argument;
throw TypeError("Can't set " + String(argument) + ' as a prototype');
};