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%2Fmodules%2Fes.date.to-string.js;h=61276b458fa8454bfee33f8f076760b0b92efdea;hp=47f959d8c24c7ad060737d6244ad8a034bc6b541;hb=3be0a9efc698a9570a44456009afc6014812625a;hpb=d2f432cc757f42f0318fdddcab8c00b240d47088 diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/modules/es.date.to-string.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/modules/es.date.to-string.js index 47f959d8..61276b45 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/modules/es.date.to-string.js +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/modules/es.date.to-string.js @@ -1,17 +1,18 @@ +var uncurryThis = require('../internals/function-uncurry-this'); var redefine = require('../internals/redefine'); var DatePrototype = Date.prototype; var INVALID_DATE = 'Invalid Date'; var TO_STRING = 'toString'; -var nativeDateToString = DatePrototype[TO_STRING]; -var getTime = DatePrototype.getTime; +var un$DateToString = uncurryThis(DatePrototype[TO_STRING]); +var getTime = uncurryThis(DatePrototype.getTime); // `Date.prototype.toString` method // https://tc39.es/ecma262/#sec-date.prototype.tostring -if (new Date(NaN) + '' != INVALID_DATE) { +if (String(new Date(NaN)) != INVALID_DATE) { redefine(DatePrototype, TO_STRING, function toString() { - var value = getTime.call(this); + var value = getTime(this); // eslint-disable-next-line no-self-compare -- NaN check - return value === value ? nativeDateToString.call(this) : INVALID_DATE; + return value === value ? un$DateToString(this) : INVALID_DATE; }); }