diff options
author | Florian Dold <florian@dold.me> | 2022-11-11 20:52:45 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2022-11-11 20:52:53 +0100 |
commit | 233a354b4728b5efc76d19a530ad85a3a3e2a3d2 (patch) | |
tree | 7e426da749ba8f97bc8a5f4767f31fbc254675a9 /packages/taler-wallet-core/src/util | |
parent | 22290020fba91253c9885eb9fa193a0dd98fa72f (diff) | |
download | wallet-core-233a354b4728b5efc76d19a530ad85a3a3e2a3d2.tar.gz wallet-core-233a354b4728b5efc76d19a530ad85a3a3e2a3d2.tar.bz2 wallet-core-233a354b4728b5efc76d19a530ad85a3a3e2a3d2.zip |
fixes and polyfills for quickjs
Diffstat (limited to 'packages/taler-wallet-core/src/util')
-rw-r--r-- | packages/taler-wallet-core/src/util/http.ts | 2 | ||||
-rw-r--r-- | packages/taler-wallet-core/src/util/timer.ts | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-wallet-core/src/util/http.ts b/packages/taler-wallet-core/src/util/http.ts index 0489f920b..118da40fe 100644 --- a/packages/taler-wallet-core/src/util/http.ts +++ b/packages/taler-wallet-core/src/util/http.ts @@ -68,7 +68,7 @@ export interface HttpRequestOptions { */ cancellationToken?: CancellationToken; - body?: string | ArrayBuffer | ArrayBufferView; + body?: string | ArrayBuffer | Object; } /** diff --git a/packages/taler-wallet-core/src/util/timer.ts b/packages/taler-wallet-core/src/util/timer.ts index 8ec1a25f8..d198e03c9 100644 --- a/packages/taler-wallet-core/src/util/timer.ts +++ b/packages/taler-wallet-core/src/util/timer.ts @@ -53,7 +53,7 @@ class IntervalHandle { * only event left. Has no effect in the browser. */ unref(): void { - if (typeof this.h === "object") { + if (typeof this.h === "object" && "unref" in this.h) { this.h.unref(); } } @@ -71,7 +71,7 @@ class TimeoutHandle { * only event left. Has no effect in the browser. */ unref(): void { - if (typeof this.h === "object") { + if (typeof this.h === "object" && "unref" in this.h) { this.h.unref(); } } |