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%2Fnative-symbol.js;h=8c85dd4b97e4fafb96d68c212c80ee5ead8ffcf3;hp=86d5f4ee9f5a07f68312bf8584dd97a8ae43c3fc;hb=3be0a9efc698a9570a44456009afc6014812625a;hpb=d2f432cc757f42f0318fdddcab8c00b240d47088 diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/internals/native-symbol.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/internals/native-symbol.js index 86d5f4ee..8c85dd4b 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/internals/native-symbol.js +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/internals/native-symbol.js @@ -1,11 +1,13 @@ -var IS_NODE = require('../internals/engine-is-node'); +/* eslint-disable es/no-symbol -- required for testing */ var V8_VERSION = require('../internals/engine-v8-version'); var fails = require('../internals/fails'); +// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing module.exports = !!Object.getOwnPropertySymbols && !fails(function () { - /* global Symbol -- required for testing */ - return !Symbol.sham && - // Chrome 38 Symbol has incorrect toString conversion + var symbol = Symbol(); + // Chrome 38 Symbol has incorrect toString conversion + // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances + return !String(symbol) || !(Object(symbol) instanceof Symbol) || // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances - (IS_NODE ? V8_VERSION === 38 : V8_VERSION > 37 && V8_VERSION < 41); + !Symbol.sham && V8_VERSION && V8_VERSION < 41; });