X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Fcore-js%2Fes%2Finstance%2Fcopy-within.js;h=e8f22c482e70a9b88b3566fbb8e15abc00373ea6;hb=3be0a9efc698a9570a44456009afc6014812625a;hp=c59f52d375f8b5e0410b89eb43d9dcdc196056b5;hpb=3aba54c891969552833dbc350b3139e944e17a97;p=dotfiles%2F.git diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/instance/copy-within.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/instance/copy-within.js index c59f52d3..e8f22c48 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/instance/copy-within.js +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/es/instance/copy-within.js @@ -1,8 +1,9 @@ -var copyWithin = require('../array/virtual/copy-within'); +var isPrototypeOf = require('../../internals/object-is-prototype-of'); +var method = require('../array/virtual/copy-within'); var ArrayPrototype = Array.prototype; module.exports = function (it) { var own = it.copyWithin; - return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.copyWithin) ? copyWithin : own; + return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.copyWithin) ? method : own; };