summaryrefslogtreecommitdiff
path: root/src/js/binaryen.js-post.js
diff options
context:
space:
mode:
authorBrad Morris <bradley.morris@sas.com>2019-10-23 13:32:49 -0400
committerAlon Zakai <azakai@google.com>2019-10-23 10:32:49 -0700
commit760904ab458aa73d97fe4bea848caf8070c56571 (patch)
treeb5170dea76a06bcbaf8e92d4b60d5c00443c541d /src/js/binaryen.js-post.js
parent8a149bbc96e478a13cf93fa5881c754b1076ddba (diff)
downloadbinaryen-760904ab458aa73d97fe4bea848caf8070c56571.tar.gz
binaryen-760904ab458aa73d97fe4bea848caf8070c56571.tar.bz2
binaryen-760904ab458aa73d97fe4bea848caf8070c56571.zip
Convert usage of Pointer_stringify to UTF8ToString (#2403)
This fixes #2396. This converts the use of the old Pointer_stringify to the new UTF8ToString. Added a js test in kitchen-sink.js to cover this.
Diffstat (limited to 'src/js/binaryen.js-post.js')
-rw-r--r--src/js/binaryen.js-post.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/binaryen.js-post.js b/src/js/binaryen.js-post.js
index 0da3f2df4..b4cd5e482 100644
--- a/src/js/binaryen.js-post.js
+++ b/src/js/binaryen.js-post.js
@@ -2315,7 +2315,7 @@ Module['getExpressionInfo'] = function(expr) {
return {
'id': id,
'type': type,
- 'names': getAllNested(expr, Module['_BinaryenSwitchGetNumNames'], Module['_BinaryenSwitchGetName']).map(Pointer_stringify),
+ 'names': getAllNested(expr, Module['_BinaryenSwitchGetNumNames'], Module['_BinaryenSwitchGetName']).map(UTF8ToString),
'defaultName': UTF8ToString(Module['_BinaryenSwitchGetDefaultName'](expr)),
'condition': Module['_BinaryenSwitchGetCondition'](expr),
'value': Module['_BinaryenSwitchGetValue'](expr)