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%2Finternals%2Fstring-trim-forced.js;h=b80d18f317fd59461a81ca6bf77c3965596fa60e;hp=1b169ad9021f89dd2144411addc6e627ca9bbb3a;hb=3be0a9efc698a9570a44456009afc6014812625a;hpb=d2f432cc757f42f0318fdddcab8c00b240d47088 diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/internals/string-trim-forced.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/internals/string-trim-forced.js index 1b169ad9..b80d18f3 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/internals/string-trim-forced.js +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/internals/string-trim-forced.js @@ -1,3 +1,4 @@ +var PROPER_FUNCTION_NAME = require('../internals/function-name').PROPER; var fails = require('../internals/fails'); var whitespaces = require('../internals/whitespaces'); @@ -7,6 +8,8 @@ var non = '\u200B\u0085\u180E'; // of whitespaces and has a correct name module.exports = function (METHOD_NAME) { return fails(function () { - return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() != non || whitespaces[METHOD_NAME].name !== METHOD_NAME; + return !!whitespaces[METHOD_NAME]() + || non[METHOD_NAME]() !== non + || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME); }); };