gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-wallet-core] branch master updated: cli: polyfill for older node


From: gnunet
Subject: [taler-wallet-core] branch master updated: cli: polyfill for older node versions
Date: Tue, 13 Jul 2021 13:55:54 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 50bbaa40 cli: polyfill for older node versions
50bbaa40 is described below

commit 50bbaa40db578ea9261099a9da5a2743ff31197b
Author: Florian Dold <florian@dold.me>
AuthorDate: Tue Jul 13 13:55:43 2021 +0200

    cli: polyfill for older node versions
---
 packages/taler-wallet-cli/src/index.ts | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/packages/taler-wallet-cli/src/index.ts 
b/packages/taler-wallet-cli/src/index.ts
index 2fac85a7..091ca2ff 100644
--- a/packages/taler-wallet-cli/src/index.ts
+++ b/packages/taler-wallet-cli/src/index.ts
@@ -21,6 +21,12 @@ 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";
+// @ts-ignore
+global.TextEncoder = TextEncoder;
+// @ts-ignore
+global.TextDecoder = TextDecoder;
 import { getTestInfo, runTests } from "./integrationtests/testrunner.js";
 import {
   PreparePayResultType,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]