Files
memecoin-botV2/.pnpm-store/v10/files/c4/e32101800bdb0a42acbf22d8c7ea06d57739d8d783f298b98b2a0e9f63faa35436f436939a2074c03460733aa45b99ba4d4ef48bb668d57ba9ad03fda5ca3e

22 lines
574 B
Plaintext

// This is free and unencumbered software released into the public domain.
// See LICENSE.md for more information.
import {
TextDecoder as TextDecoderPolyfill,
TextEncoder as TextEncoderPolyfill,
} from './encoding.js'
function getGlobal() {
if (typeof self !== 'undefined') return self;
if (typeof global !== 'undefined') return global;
throw new Error('No global found');
}
if (typeof TextDecoder !== 'function') {
getGlobal().TextDecoder = TextDecoderPolyfill;
}
if (typeof TextEncoder !== 'function') {
getGlobal().TextEncoder = TextEncoderPolyfill;
}