X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Fcore-js%2Fes%2Finstance%2Fstarts-with.js;h=9f8b0810ed16603fe1621fc768987742e25ddd1f;hb=3be0a9efc698a9570a44456009afc6014812625a;hp=99a01a7f257f3288c0d4a9f27ef0643c142345be;hpb=3c06164f15bd10aed7d66b6314764a2961a14762;p=dotfiles%2F.git diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/instance/starts-with.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/instance/starts-with.js index 99a01a7f..9f8b0810 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/instance/starts-with.js +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/instance/starts-with.js @@ -1,9 +1,10 @@ -var startsWith = require('../string/virtual/starts-with'); +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../string/virtual/starts-with'); var StringPrototype = String.prototype; module.exports = function (it) { var own = it.startsWith; - return typeof it === 'string' || it === StringPrototype - || (it instanceof String && own === StringPrototype.startsWith) ? startsWith : own; + return typeof it == 'string' || it === StringPrototype + || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.startsWith) ? method : own; };