From 963f5e69e0dbe27cb1e02a0a510497fc255d436b Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Tue, 6 Jul 2021 11:53:39 +0430 Subject: [PATCH] Meta+LibWasm: Generate calls to functions when they don't have results --- Meta/generate-libwasm-spec-test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Meta/generate-libwasm-spec-test.py b/Meta/generate-libwasm-spec-test.py index 476a8db9495..e06737aaf77 100644 --- a/Meta/generate-libwasm-spec-test.py +++ b/Meta/generate-libwasm-spec-test.py @@ -295,8 +295,8 @@ def genresult(ident, entry): if entry['kind'] == 'return': return ( - f'let {ident}_result = {expectation};\n ' - f'expect({ident}_result).toBe({genarg(entry["result"])})\n ' if entry["result"] is not None else '' + f'let {ident}_result = {expectation};\n ' + + (f'expect({ident}_result).toBe({genarg(entry["result"])})\n ' if entry["result"] is not None else '') ) if entry['kind'] == 'trap':