From 963f5e69e0dbe27cb1e02a0a510497fc255d436b Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Tue, 6 Jul 2021 11:53:39 +0430 Subject: 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(-) (limited to 'Meta/generate-libwasm-spec-test.py') diff --git a/Meta/generate-libwasm-spec-test.py b/Meta/generate-libwasm-spec-test.py index 476a8db949..e06737aaf7 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': -- cgit v1.2.3