Skip to content

Commit 6fafe0e

Browse files
author
awtcode
committed
Do not encode to utf-8 to avoid byte and str concatenation
1 parent 825dadf commit 6fafe0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

emscripten.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2209,7 +2209,7 @@ def emscript_wasm_backend(infile, outfile, memfile, compiler_engine,
22092209
library_fns = forwarded_json['Functions']['libraryFunctions']
22102210
library_fns_list = []
22112211
for name in library_fns:
2212-
library_fns_list.append(name.encode('utf-8'))
2212+
library_fns_list.append(name)
22132213

22142214
js_symbols = infile + '.js_symbols'
22152215
with open(js_symbols, 'w') as js_symbols_file:

0 commit comments

Comments
 (0)