mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-14 13:32:23 +00:00
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: f5d4e26ff7
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':
|
elif len(entry) >= 2 and entry[0][0] == 'invoke':
|
||||||
# toplevel invoke :shrug:
|
# toplevel invoke :shrug:
|
||||||
arg, name, module = 0, None, None
|
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]
|
name = entry[1][1]
|
||||||
|
elif isinstance(entry[1], str):
|
||||||
|
name = entry[1]
|
||||||
else:
|
else:
|
||||||
name = entry[1][2]
|
name = entry[1][2]
|
||||||
module = named_modules[entry[1][1][0]]
|
module = named_modules[entry[1][1][0]]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue