diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-08-17 15:36:51 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-08-17 15:36:51 +0200 |
commit | f18d70d0d18b1258ebf36dabb2025eaf181e8032 (patch) | |
tree | 637f44be822b86b33e9db112214562d5e7ce7680 /src/crypto/emscInterface.ts | |
parent | 43cccf2c70e616c88f1e48695ddb419730e016c8 (diff) | |
download | wallet-core-f18d70d0d18b1258ebf36dabb2025eaf181e8032.tar.xz |
update emscripten libs and use new non-removed emscripten functions
Diffstat (limited to 'src/crypto/emscInterface.ts')
-rw-r--r-- | src/crypto/emscInterface.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/emscInterface.ts b/src/crypto/emscInterface.ts index 0c7edefab..da5442a61 100644 --- a/src/crypto/emscInterface.ts +++ b/src/crypto/emscInterface.ts @@ -74,7 +74,7 @@ interface EmscLib { _malloc(n: number): number; - Pointer_stringify(p: number, len?: number): string; + UTF8ToString(p: number, len?: number): string; getValue(ptr: number, type: string, noSafe?: boolean): number; @@ -565,7 +565,7 @@ abstract class PackedArenaObject extends MallocArenaObject { toCrock(): string { const d = this.emsc.allocFuncs.data_to_string_alloc(this.nativePtr, this.size()); - const s = this.emsc.lib.Pointer_stringify(d); + const s = this.emsc.lib.UTF8ToString(d); this.emsc.funcs.free(d); return s; } |