Meta+LibWasm: Correctly parse the invokee name in toplevel invokes
This commit is contained in:
parent
0b08392e54
commit
f5d4e26ff7
Notes:
sideshowbarker
2024-07-18 10:18:32 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/f5d4e26ff7e Pull-request: https://github.com/SerenityOS/serenity/pull/8488
1 changed files with 3 additions and 1 deletions
|
@ -188,8 +188,10 @@ def generate(ast):
|
|||
elif len(entry) >= 2 and entry[0][0] == 'invoke':
|
||||
# toplevel invoke :shrug:
|
||||
arg, name, module = 0, None, None
|
||||
if isinstance(entry[1][1], str):
|
||||
if not isinstance(entry[1], str) and isinstance(entry[1][1], str):
|
||||
name = entry[1][1]
|
||||
elif isinstance(entry[1], str):
|
||||
name = entry[1]
|
||||
else:
|
||||
name = entry[1][2]
|
||||
module = named_modules[entry[1][1][0]]
|
||||
|
|
Loading…
Add table
Reference in a new issue