diff options
author | Florian Dold <florian@dold.me> | 2021-07-13 14:10:38 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2021-07-13 14:10:38 +0200 |
commit | e2287d6d5ba01868263d8a08d45ddc60b0ab91fb (patch) | |
tree | 3f0c3ed688382a27991b4cdeaaf38680b30599a5 /packages/taler-wallet-cli | |
parent | 50bbaa40db578ea9261099a9da5a2743ff31197b (diff) |
make TextEncoder/Decoder creation lazy for polyfill to work
Diffstat (limited to 'packages/taler-wallet-cli')
-rw-r--r-- | packages/taler-wallet-cli/src/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/taler-wallet-cli/src/index.ts b/packages/taler-wallet-cli/src/index.ts index 091ca2ff8..ddcf6a645 100644 --- a/packages/taler-wallet-cli/src/index.ts +++ b/packages/taler-wallet-cli/src/index.ts @@ -19,7 +19,6 @@ */ import os from "os"; import fs from "fs"; -import * as clk from "./clk.js"; import { deepStrictEqual } from "assert"; // Polyfill for encoding which isn't present globally in older nodejs versions import { TextEncoder, TextDecoder } from "util"; @@ -27,6 +26,7 @@ import { TextEncoder, TextDecoder } from "util"; global.TextEncoder = TextEncoder; // @ts-ignore global.TextDecoder = TextDecoder; +import * as clk from "./clk.js"; import { getTestInfo, runTests } from "./integrationtests/testrunner.js"; import { PreparePayResultType, |