Meta: Un-escape escaped strings when generating Wasm tests

This commit is contained in:
Ali Mohammad Pur 2021-08-10 23:41:36 +04:30 committed by Andreas Kling
parent 4060f18d7e
commit f0e7e5bbe8
Notes: sideshowbarker 2024-07-18 07:03:57 +09:00

View file

@ -69,7 +69,7 @@ def generate_module_source_for_compilation(entries):
if type(entry) == tuple and len(entry) == 1 and type(entry[0]) == str:
s += entry[0] + ' '
elif type(entry) == str:
s += json.dumps(entry) + ' '
s += json.dumps(entry).replace('\\\\', '\\') + ' '
elif type(entry) == list:
s += generate_module_source_for_compilation(entry)
else: