fix: push commands in as2 left in code (#2654)

If the code does not contain any §§pop() instructions,
then all §§push instructions are converted to their
values with comment "unpopped".

Fixes #2654
This commit is contained in:
Jindra Petřík
2026-03-09 21:37:08 +01:00
parent fa18aa6bfc
commit 0942d7d96d
8 changed files with 114 additions and 103 deletions

View File

@@ -241,10 +241,11 @@ public class ActionScript2ClassesTest extends ActionScript2TestBase {
+ " var c = true;\n"
+ " function TestUnpopped()\n"
+ " {\n"
+ " \n"
+ " }\n"
+ " function run()\n"
+ " {\n"
+ " §§push(this.a);\n"
+ " this.a; //unpopped\n"
+ " trace(\"b\");\n"
+ " if(this.c)\n"
+ " {\n"