diff test/perf-test.js @ 176:eaf46e7647a0 tip master

Update for latest Emscripten - Pointer_stringify has apparently been deprecated for a while, and was removed in v1.38.27
author Chris Cannam <cannam@all-day-breakfast.com>
date Wed, 27 Feb 2019 11:29:53 +0000
parents a91b4defa581
children
line wrap: on
line diff
--- a/test/perf-test.js	Wed Jun 13 15:55:39 2018 +0100
+++ b/test/perf-test.js	Wed Feb 27 11:29:53 2019 +0000
@@ -65,7 +65,7 @@
             }
             exampleModule._free(buffersPtr);
 
-            const responseJstr = exampleModule.Pointer_stringify(responseJson);
+            const responseJstr = exampleModule.UTF8ToString(responseJson);
             const response = JSON.parse(responseJstr);
             
             piperFreeJson(responseJson);
@@ -99,7 +99,7 @@
             var inCstr = m.allocate(m.intArrayFromString(jsonStr), 'i8', m.ALLOC_NORMAL);
             var outCstr = piperRequestJson(inCstr);
             m._free(inCstr);
-            var result = m.Pointer_stringify(outCstr);
+            var result = m.UTF8ToString(outCstr);
             piperFreeJson(outCstr);
             note("Returned JSON = " + result);
             return result;