From f0e7e5bbe8871158b79fac9e2e9cae6d3be51933 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Tue, 10 Aug 2021 23:41:36 +0430 Subject: [PATCH] Meta: Un-escape escaped strings when generating Wasm tests --- Meta/generate-libwasm-spec-test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Meta/generate-libwasm-spec-test.py b/Meta/generate-libwasm-spec-test.py index 0b5b1b83a24..fffdc09280d 100644 --- a/Meta/generate-libwasm-spec-test.py +++ b/Meta/generate-libwasm-spec-test.py @@ -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: