mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-08-02 16:11:17 +00:00
Fixed: AS3 direct editation - unary minus (negate) compiled as 0 - value
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -16,7 +16,7 @@
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::timeStamp</name>
|
||||
<value>'11.02.2021'</value>
|
||||
<value>'16.02.2021'</value>
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::air</name>
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::timeStamp</name>
|
||||
<value>'11.02.2021'</value>
|
||||
<value>'16.02.2021'</value>
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::air</name>
|
||||
|
||||
@@ -7,6 +7,7 @@ package
|
||||
import tests_classes.mypackage2.SetupMyPackage2;
|
||||
import tests_classes.mypackage3.SetupMyPackage3;
|
||||
import tests_classes.*;
|
||||
import tests_edit.*;
|
||||
|
||||
/**
|
||||
* ...
|
||||
@@ -104,6 +105,9 @@ package
|
||||
TestInitializer;
|
||||
TestRegexpHilight;
|
||||
|
||||
TestPropertyCoerce;
|
||||
TestUnaryMinus;
|
||||
|
||||
public function Main()
|
||||
{
|
||||
if (stage) init();
|
||||
|
||||
18
libsrc/ffdec_lib/testdata/as3_new/src/tests_edit/TestPropertyCoerce.as
vendored
Normal file
18
libsrc/ffdec_lib/testdata/as3_new/src/tests_edit/TestPropertyCoerce.as
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
package tests_edit
|
||||
{
|
||||
/**
|
||||
* ...
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class TestPropertyCoerce
|
||||
{
|
||||
private var attr:Number = 5;
|
||||
|
||||
public function run():void
|
||||
{
|
||||
this.attr = 10;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
19
libsrc/ffdec_lib/testdata/as3_new/src/tests_edit/TestUnaryMinus.as
vendored
Normal file
19
libsrc/ffdec_lib/testdata/as3_new/src/tests_edit/TestUnaryMinus.as
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
package tests_edit
|
||||
{
|
||||
/**
|
||||
* ...
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class TestUnaryMinus
|
||||
{
|
||||
|
||||
public function run(): void
|
||||
{
|
||||
var a:int = 5;
|
||||
var b:int = 6;
|
||||
var c:int = -a * b;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user