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