commit 72f7664c709ce2e2bb383ec4559cdf2703d7592a parent e2287d6d5ba01868263d8a08d45ddc60b0ab91fb Author: Florian Dold <florian@dold.me> Date: Tue, 13 Jul 2021 14:13:38 +0200 comment Diffstat:
| M | packages/taler-wallet-core/src/crypto/talerCrypto.ts | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/packages/taler-wallet-core/src/crypto/talerCrypto.ts b/packages/taler-wallet-core/src/crypto/talerCrypto.ts @@ -194,6 +194,12 @@ function kdfMod( } } +// Newer versions of node have TextEncoder and TextDecoder as a global, +// just like modern browsers. +// In older versions of node or environments that do not have these +// globals, they must be polyfilled (by adding them to globa/globalThis) +// before stringToBytes or bytesToString is called the first time. + let encoder: any; let decoder: any;