summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-03-31 10:20:09 -0700
committerGitHub <noreply@github.com>2023-03-31 17:20:09 +0000
commitc06593b41242ca1f58da47806dbf5ccb3f2100f4 (patch)
tree6cad7d0fc3ef6cfc19b3144c90aef663369dd646 /src
parent1bef55854e284b81724be4aecf439b9046ab92ad (diff)
downloadbinaryen-c06593b41242ca1f58da47806dbf5ccb3f2100f4.tar.gz
binaryen-c06593b41242ca1f58da47806dbf5ccb3f2100f4.tar.bz2
binaryen-c06593b41242ca1f58da47806dbf5ccb3f2100f4.zip
Fix Emscripten build for latest tot changes (#5610)
Diffstat (limited to 'src')
-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 8c0b7873c..50cac2a1c 100644
--- a/src/js/binaryen.js-post.js
+++ b/src/js/binaryen.js-post.js
@@ -3417,7 +3417,7 @@ Module['readBinary'] = function(data) {
// Parses text format to a module
Module['parseText'] = function(text) {
const buffer = _malloc(text.length + 1);
- writeAsciiToMemory(text, buffer);
+ stringToAscii(text, buffer);
const ptr = Module['_BinaryenModuleParse'](buffer);
_free(buffer);
return wrapModule(ptr);