1
0
mirror of synced 2025-02-20 20:50:59 +01:00

Fix massive bug which dropped function calls without returns from the finished output.

This commit is contained in:
Jennifer Taylor 2021-05-05 00:53:58 +00:00
parent f09fd79a45
commit 2f79a6401d

View File

@ -2548,7 +2548,7 @@ class ByteCodeDecompiler(VerboseOutput):
# This is a discard. Let's see if its discarding a function or method
# call. If so, that means the return doesn't matter.
discard = stack.pop()
if isinstance(discard, MethodCall):
if isinstance(discard, (FunctionCall, MethodCall)):
# It is! Let's act on the statement.
chunk.actions[i] = ExpressionStatement(discard)
else: