mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-08-17 09:20:28 +03: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
@ -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 New Issue
Block a user