diff test/perf-test-node.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-node.js	Wed Jun 13 15:55:39 2018 +0100
+++ b/test/perf-test-node.js	Wed Feb 27 11:29:53 2019 +0000
@@ -67,7 +67,7 @@
         }
         extractorModule._free(buffersPtr);
 
-        const responseJstr = extractorModule.Pointer_stringify(responseJson);
+        const responseJstr = extractorModule.UTF8ToString(responseJson);
         const response = JSON.parse(responseJstr);
         
         piperFreeJson(responseJson);
@@ -101,7 +101,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;