gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [taler-wallet-webex] 03/05: emscripten env consistency


From: gnunet
Subject: [GNUnet-SVN] [taler-wallet-webex] 03/05: emscripten env consistency
Date: Fri, 16 Aug 2019 15:04:04 +0200

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

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

commit 0049a240e73b4665e8ace6ae9171609460fe3954
Author: Florian Dold <address@hidden>
AuthorDate: Fri Aug 16 00:54:48 2019 +0200

    emscripten env consistency
---
 package.json                    | 2 +-
 src/crypto/synchronousWorker.ts | 9 ++++++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/package.json b/package.json
index a7dce61e..6c844817 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "taler-wallet",
-  "version": "0.0.4",
+  "version": "0.0.6",
   "description": "",
   "main": "dist/node/index.js",
   "repository": {
diff --git a/src/crypto/synchronousWorker.ts b/src/crypto/synchronousWorker.ts
index c8ee3be1..1c98209a 100644
--- a/src/crypto/synchronousWorker.ts
+++ b/src/crypto/synchronousWorker.ts
@@ -102,14 +102,21 @@ export class SynchronousCryptoWorker {
       const savedImportScripts = g.importScripts;
       // @ts-ignore
       delete g.importScripts;
+      // @ts-ignore
+      const savedCrypto = g.crypto;
+      // @ts-ignore
+      delete g.crypto;
 
       // Assume that the code is run from the build/ directory.
       const libFn = indirectRequire(
         "../../../emscripten/taler-emscripten-lib.js",
       );
-      const lib = libFn(libArgs);
+      lib = libFn(libArgs);
+
       // @ts-ignore
       g.importScripts = savedImportScripts;
+      // @ts-ignore
+      g.crypto = savedCrypto;
 
       if (!lib) {
         throw Error("could not load taler-emscripten-lib.js");

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

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