Fixed #2437 AS1 P-code - do not group pushes automatically,

AS1 Direct editation - group pushes on FP5+,
AS1 - use Constant pool only on FP5+
This commit is contained in:
Jindra Petřík
2025-04-06 11:54:44 +02:00
parent 187364a2e4
commit c145a76df7
7 changed files with 130 additions and 119 deletions

View File

@@ -171,8 +171,7 @@ public class ActionScript2CompilerTest extends ActionScript2TestBase {
@Test
public void stopUndefined() {
testCompilation("trace(stop());", "ConstantPool\n"
+ "Stop\n"
testCompilation("trace(stop());", "Stop\n"
+ "Push undefined, undefined\n"
+ "Trace");
}