From e2287d6d5ba01868263d8a08d45ddc60b0ab91fb Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 13 Jul 2021 14:10:38 +0200 Subject: make TextEncoder/Decoder creation lazy for polyfill to work --- packages/taler-wallet-cli/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/taler-wallet-cli/src') 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, -- cgit v1.2.3