This commit is contained in:
root
2025-11-25 09:56:15 +03:00
commit 68c8f0e80d
23717 changed files with 3200521 additions and 0 deletions

29
mc_test/node_modules/globalthis/shim.js generated vendored Executable file
View File

@ -0,0 +1,29 @@
'use strict';
var define = require('define-properties');
var gOPD = require('gopd');
var getPolyfill = require('./polyfill');
module.exports = function shimGlobal() {
var polyfill = getPolyfill();
if (define.supportsDescriptors) {
var descriptor = gOPD(polyfill, 'globalThis');
if (
!descriptor
|| (
descriptor.configurable
&& (descriptor.enumerable || !descriptor.writable || globalThis !== polyfill)
)
) {
Object.defineProperty(polyfill, 'globalThis', {
configurable: true,
enumerable: false,
value: polyfill,
writable: true
});
}
} else if (typeof globalThis !== 'object' || globalThis !== polyfill) {
polyfill.globalThis = polyfill;
}
return polyfill;
};