mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17:34 +00:00
Meta+LibWasm: Generate calls to functions when they don't have results
This commit is contained in:
parent
e3ef241108
commit
963f5e69e0
1 changed files with 2 additions and 2 deletions
|
@ -295,8 +295,8 @@ def genresult(ident, entry):
|
||||||
|
|
||||||
if entry['kind'] == 'return':
|
if entry['kind'] == 'return':
|
||||||
return (
|
return (
|
||||||
f'let {ident}_result = {expectation};\n '
|
f'let {ident}_result = {expectation};\n ' +
|
||||||
f'expect({ident}_result).toBe({genarg(entry["result"])})\n ' if entry["result"] is not None else ''
|
(f'expect({ident}_result).toBe({genarg(entry["result"])})\n ' if entry["result"] is not None else '')
|
||||||
)
|
)
|
||||||
|
|
||||||
if entry['kind'] == 'trap':
|
if entry['kind'] == 'trap':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue