aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/emscInterface.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-07-31 01:33:56 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-07-31 01:33:56 +0200
commitcc4e8ddc85d36f29a7385a7f4eb08c77f46b3af6 (patch)
tree56b7d5a083c5b64a72d0905ad04616b97986538e /src/crypto/emscInterface.ts
parentbcefbd7aab5f33f93d626c6421a1a1218c1a91a2 (diff)
downloadwallet-core-cc4e8ddc85d36f29a7385a7f4eb08c77f46b3af6.tar.xz
headless wallet WIP
Diffstat (limited to 'src/crypto/emscInterface.ts')
-rw-r--r--src/crypto/emscInterface.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/crypto/emscInterface.ts b/src/crypto/emscInterface.ts
index 2ddc15a37..70a85cda1 100644
--- a/src/crypto/emscInterface.ts
+++ b/src/crypto/emscInterface.ts
@@ -43,6 +43,9 @@ export function initialize(lib: EmscLib) {
if (!lib) {
throw Error("library must be object");
}
+ if (!lib.ccall) {
+ throw Error("sanity check failed: EmscLib does not have 'ccall'");
+ }
if (maybeEmscEnv) {
throw Error("emsc lib already initialized");
}