mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-06 12:08:46 +00:00
Fixed: #2279 AS3 Decompilation - assignments on the right side of && and || operators
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -99,6 +99,7 @@ package
|
||||
TestNumberCall;
|
||||
TestOperations;
|
||||
TestOptimization;
|
||||
TestOptimizationAndOr;
|
||||
TestOptionalParameters;
|
||||
TestParamNames;
|
||||
TestParamsCount;
|
||||
|
||||
@@ -9,7 +9,7 @@ package tests
|
||||
{
|
||||
var c:InnerClass = new InnerClass();
|
||||
c.attr = 2;
|
||||
var a = attr;
|
||||
var a:int = attr;
|
||||
trace(a);
|
||||
}
|
||||
}
|
||||
|
||||
19
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestOptimizationAndOr.as
vendored
Normal file
19
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestOptimizationAndOr.as
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
package tests
|
||||
{
|
||||
|
||||
public class TestOptimizationAndOr
|
||||
{
|
||||
public function run():*
|
||||
{
|
||||
var o:Object = {a:"Object", b:"Object", c:"Object"};
|
||||
|
||||
var a:String = "d";
|
||||
|
||||
var plugin:Object;
|
||||
|
||||
if (a in o && (plugin = new o[a]).toString().length > 2) {
|
||||
trace("okay");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@ package tests
|
||||
|
||||
public class TestStringCoerce
|
||||
{
|
||||
var a:Object = null;
|
||||
private var a:Object = null;
|
||||
|
||||
public function run():*
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user