X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=.config%2Fcoc%2Fextensions%2Fnode_modules%2Fcoc-prettier%2Fnode_modules%2Fcore-js%2Fconfigurator.js;h=57e019dd9b3b87cc4d78e1844901d7121e56586e;hb=3be0a9efc698a9570a44456009afc6014812625a;hp=0a5288eb6f6ba31ebdc8393910293f704f41f7d9;hpb=3c06164f15bd10aed7d66b6314764a2961a14762;p=dotfiles%2F.git diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/configurator.js b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/configurator.js index 0a5288eb..57e019dd 100644 --- a/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/configurator.js +++ b/.config/coc/extensions/node_modules/coc-prettier/node_modules/core-js/configurator.js @@ -1,4 +1,4 @@ -var has = require('./internals/has'); +var hasOwn = require('./internals/has-own-property'); var isArray = require('./internals/is-array'); var isForced = require('./internals/is-forced'); var shared = require('./internals/shared-store'); @@ -17,7 +17,11 @@ module.exports = function (options) { setAggressivenessLevel(options.useNative, isForced.NATIVE); setAggressivenessLevel(options.usePolyfill, isForced.POLYFILL); setAggressivenessLevel(options.useFeatureDetection, null); - if (has(options, USE_FUNCTION_CONSTRUCTOR)) shared[USE_FUNCTION_CONSTRUCTOR] = !!options[USE_FUNCTION_CONSTRUCTOR]; - if (has(options, ASYNC_ITERATOR_PROTOTYPE)) shared[USE_FUNCTION_CONSTRUCTOR] = options[ASYNC_ITERATOR_PROTOTYPE]; + if (hasOwn(options, USE_FUNCTION_CONSTRUCTOR)) { + shared[USE_FUNCTION_CONSTRUCTOR] = !!options[USE_FUNCTION_CONSTRUCTOR]; + } + if (hasOwn(options, ASYNC_ITERATOR_PROTOTYPE)) { + shared[USE_FUNCTION_CONSTRUCTOR] = options[ASYNC_ITERATOR_PROTOTYPE]; + } } };