mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-04 05:20:30 +00:00
Meta+LibWasm: Generate calls to functions when they don't have results
This commit is contained in:
parent
e3ef241108
commit
963f5e69e0
Notes:
sideshowbarker
2024-07-18 10:18:43 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/963f5e69e0d Pull-request: https://github.com/SerenityOS/serenity/pull/8488
1 changed files with 2 additions and 2 deletions
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue