1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:57:44 +00:00

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

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: