diff options
author | Florian Dold <florian@dold.me> | 2023-06-30 23:47:35 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-06-30 23:47:35 +0200 |
commit | 2dcd3c12b280ef35b5acfedb44377c160653092a (patch) | |
tree | 1b69096a25f0c3897f14f0b4c862fc325f5a18c0 /taler_wallet_core_lib.c | |
parent | 1946a5d76f0717d311121dacc48940f4a5d4f051 (diff) | |
download | quickjs-tart-2dcd3c12b280ef35b5acfedb44377c160653092a.tar.gz quickjs-tart-2dcd3c12b280ef35b5acfedb44377c160653092a.tar.bz2 quickjs-tart-2dcd3c12b280ef35b5acfedb44377c160653092a.zip |
Revert "taler-wallet-core lib: add comments from today's session"
This reverts commit 1946a5d76f0717d311121dacc48940f4a5d4f051.
Diffstat (limited to 'taler_wallet_core_lib.c')
-rw-r--r-- | taler_wallet_core_lib.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/taler_wallet_core_lib.c b/taler_wallet_core_lib.c index bc1bef3..777793b 100644 --- a/taler_wallet_core_lib.c +++ b/taler_wallet_core_lib.c @@ -24,16 +24,9 @@ #include <unistd.h> #include <string.h> -// Compiled JavaScript byte code for the prelude, -// i.e., functions to make wallet-core runnable under -// the quickjs / qtart runtime. extern const uint8_t qjsc_prelude[]; extern const uint32_t qjsc_prelude_size; -// Compiled JavaScript for wallet-core, -// compiled from taler-wallet-core-qjs.mjs -// This code does (or rather will!) -// also contain the anastasis functionality. extern const uint8_t qjsc_wallet_core[]; extern const uint32_t qjsc_wallet_core_size; @@ -146,12 +139,14 @@ run(void *cls) js_std_init_handlers(wh->rt); wh->ctx = JS_NewCustomContext(wh->rt); + if (!wh->ctx) { fprintf(stderr, "qjs: cannot allocate JS context\n"); pthread_mutex_unlock(&wh->handle_mutex); return NULL; } + JS_SetHostPromiseRejectionTracker(wh->rt, js_std_promise_rejection_tracker, NULL); |