update emscripten libs and use new non-removed emscripten functions

This commit is contained in:
Florian Dold 2019-08-17 15:36:51 +02:00
parent 43cccf2c70
commit f18d70d0d1
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
3 changed files with 10 additions and 13 deletions

File diff suppressed because one or more lines are too long

Binary file not shown.

View File

@ -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;
}