summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-07-06 11:53:39 +0430
committerAli Mohammad Pur <Ali.mpfard@gmail.com>2021-07-06 17:55:00 +0430
commit963f5e69e0dbe27cb1e02a0a510497fc255d436b (patch)
tree808758f6379f33671632d562eb711045a0e9026f
parente3ef2411086488ebdb8d193bcefd06cd77372d09 (diff)
downloadserenity-963f5e69e0dbe27cb1e02a0a510497fc255d436b.zip
Meta+LibWasm: Generate calls to functions when they don't have results
-rw-r--r--Meta/generate-libwasm-spec-test.py4
1 files changed, 2 insertions, 2 deletions
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':