Fixed AS1/2 - stop/play/etc. can be used in expressions, pushing undefined

This commit is contained in:
Jindra Petřík
2021-11-29 13:45:36 +01:00
parent 8e79af0bd4
commit d7de0fae66
28 changed files with 562 additions and 284 deletions

View File

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