Mercurial > hg > piper-vamp-js
diff test/node-load-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/node-load-test.js Wed Jun 13 15:55:39 2018 +0100 +++ b/test/node-load-test.js Wed Feb 27 11:29:53 2019 +0000 @@ -65,7 +65,7 @@ } extractorModule._free(buffersPtr); - const responseJstr = extractorModule.Pointer_stringify(responseJson); + const responseJstr = extractorModule.UTF8ToString(responseJson); const response = JSON.parse(responseJstr); piperFreeJson(responseJson); @@ -99,7 +99,7 @@ let inCstr = m.allocate(m.intArrayFromString(jsonStr), 'i8', m.ALLOC_NORMAL); let outCstr = piperRequestJson(inCstr); m._free(inCstr); - const responseJstr = m.Pointer_stringify(outCstr); + const responseJstr = m.UTF8ToString(outCstr); const response = JSON.parse(responseJstr); piperFreeJson(outCstr); return response;