MCPcopy Create free account
hub / github.com/RubyLouvre/anu / check

Function check

test/babel.js:48359–48362  ·  view source on GitHub ↗
(O, proto)

Source from the content-addressed store, hash-verified

48357 var isObject = __webpack_require__(22),
48358 anObject = __webpack_require__(19);
48359 var check = function check(O, proto) {
48360 anObject(O);
48361 if (!isObject(proto) && proto !== null) throw TypeError(proto + ": can't set as prototype!");
48362 };
48363 module.exports = {
48364 set: Object.setPrototypeOf || ('__proto__' in {} ? // eslint-disable-line
48365 function (test, buggy, set) {

Callers 4

babel.jsFile · 0.85
isIdentifierNameES6Function · 0.85
onlyChildrenFunction · 0.85
loadScriptsFunction · 0.85

Calls 3

predicateFunction · 0.85
runFunction · 0.85
isObjectFunction · 0.70

Tested by

no test coverage detected