mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-22 11:34:53 +00:00
fix: actionscript and/or operators with simple value operands (#2680)
Fixes #2680
This commit is contained in:
@@ -48,6 +48,7 @@ public class ActionScript2Test extends ActionScript2TestBase {
|
||||
Configuration.decompile.set(true);
|
||||
Configuration.registerNameFormat.set("_loc%d_");
|
||||
Configuration.autoRenameIdentifiers.set(false);
|
||||
Configuration.skipDetectionOfUninitializedClassFields.set(false);
|
||||
swf = new SWF(new BufferedInputStream(new FileInputStream("testdata/as2/as2.swf")), false);
|
||||
}
|
||||
|
||||
@@ -2669,5 +2670,17 @@ public class ActionScript2Test extends ActionScript2TestBase {
|
||||
+ "}\r\n"
|
||||
);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void frame98_andIntTest() {
|
||||
compareSrc(98, "trace(\"andIntTest\");\r\n"
|
||||
+ "var a = 1;\r\n"
|
||||
+ "var b = 5;\r\n"
|
||||
+ "if(0 && (1 || a < b))\r\n"
|
||||
+ "{\r\n"
|
||||
+ "trace(\"okay\");\r\n"
|
||||
+ "}\r\n"
|
||||
);
|
||||
}
|
||||
//--FRAMES-END--
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user