diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-07-31 01:33:56 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-07-31 01:33:56 +0200 |
commit | cc4e8ddc85d36f29a7385a7f4eb08c77f46b3af6 (patch) | |
tree | 56b7d5a083c5b64a72d0905ad04616b97986538e /src/crypto/emscInterface.ts | |
parent | bcefbd7aab5f33f93d626c6421a1a1218c1a91a2 (diff) | |
download | wallet-core-cc4e8ddc85d36f29a7385a7f4eb08c77f46b3af6.tar.xz |
headless wallet WIP
Diffstat (limited to 'src/crypto/emscInterface.ts')
-rw-r--r-- | src/crypto/emscInterface.ts | 3 |
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"); } |