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%2Fmatch-all.js;h=252856597151c75fe922e7e54ff7bb871f81cc2f;hp=2ab56b11ab4fb551ddfdb5eb2807682921547a5d;hb=3be0a9efc698a9570a44456009afc6014812625a;hpb=d2f432cc757f42f0318fdddcab8c00b240d47088 diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/instance/match-all.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/instance/match-all.js index 2ab56b11..25285659 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/instance/match-all.js +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/instance/match-all.js @@ -1,9 +1,10 @@ -var matchAll = require('../string/virtual/match-all'); +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../string/virtual/match-all'); var StringPrototype = String.prototype; module.exports = function (it) { var own = it.matchAll; - return typeof it === 'string' || it === StringPrototype - || (it instanceof String && own === StringPrototype.matchAll) ? matchAll : own; + return typeof it == 'string' || it === StringPrototype + || (isPrototypeOf(StringPrototype, it) && own === StringPrototype.matchAll) ? method : own; };