X-Git-Url: https://git.josue.xyz/?p=dotfiles%2F.git;a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Fcore-js%2Finternals%2Fa-possible-prototype.js;h=42c34bd02c0ca091551828c85d3c734071de8c05;hp=7736376e9dee6488c03abb2e61443b6b53b21123;hb=3be0a9efc698a9570a44456009afc6014812625a;hpb=d2f432cc757f42f0318fdddcab8c00b240d47088 diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/internals/a-possible-prototype.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/internals/a-possible-prototype.js index 7736376e..42c34bd0 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/internals/a-possible-prototype.js +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/internals/a-possible-prototype.js @@ -1,7 +1,10 @@ -var isObject = require('../internals/is-object'); +var global = require('../internals/global'); +var isCallable = require('../internals/is-callable'); -module.exports = function (it) { - if (!isObject(it) && it !== null) { - throw TypeError("Can't set " + String(it) + ' as a prototype'); - } return it; +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'); };