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%2Fes%2Finstance%2Fpad-end.js;h=a70d911e4577a50d23faab82a825e0a3e67b72d2;hp=40ea6030bc1b8832f765d3f73cedba382cf8568d;hb=3be0a9efc698a9570a44456009afc6014812625a;hpb=d2f432cc757f42f0318fdddcab8c00b240d47088 diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/instance/pad-end.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/instance/pad-end.js index 40ea6030..a70d911e 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/instance/pad-end.js +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/instance/pad-end.js @@ -1,9 +1,10 @@ -var padEnd = require('../string/virtual/pad-end'); +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../string/virtual/pad-end'); var StringPrototype = String.prototype; module.exports = function (it) { var own = it.padEnd; - return typeof it === 'string' || it === StringPrototype - || (it instanceof String && own === StringPrototype.padEnd) ? padEnd : own; + return typeof it == 'string' || it === StringPrototype + || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.padEnd) ? method : own; };