Skip to content

Commit 62dfd0f

Browse files
authored
wasm_js_glue can be unicode, so make sure to convert to string properly. fixes regression from 78e2fcd (#4855)
1 parent 78e2fcd commit 62dfd0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

emcc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1697,7 +1697,7 @@ def save_intermediate(name=None, suffix='js'):
16971697
wasm_js_glue = wasm_js_glue.replace('{{{ wasmJSMethod }}}', 'null')
16981698
wasm_js_glue = wasm_js_glue.replace('{{{ WASM_BACKEND }}}', str(shared.Settings.WASM_BACKEND)) # if wasm backend, wasm contains memory segments
16991699
wasm_js_glue += '\nintegrateWasmJS(Module);\n' # add a call
1700-
post_module += wasm_js_glue # we can set up the glue once we have the module
1700+
post_module += str(wasm_js_glue) # we can set up the glue once we have the module
17011701

17021702
# Apply pre and postjs files
17031703
if pre_js or post_module or post_js:

0 commit comments

Comments
 (0)