summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);