mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-25 18:35:10 +00:00
Fixed #1195 this keyword in functions outside class
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>'07.02.2021'</value>
|
||||
<value>'08.02.2021'</value>
|
||||
</define>
|
||||
<define append="true">
|
||||
<name>CONFIG::air</name>
|
||||
|
||||
@@ -6,6 +6,7 @@ package
|
||||
import tests_classes.mypackage1.SetupMyPackage1;
|
||||
import tests_classes.mypackage2.SetupMyPackage2;
|
||||
import tests_classes.mypackage3.SetupMyPackage3;
|
||||
import tests_classes.TestThisOutsideClass;
|
||||
|
||||
/**
|
||||
* ...
|
||||
@@ -79,6 +80,7 @@ package
|
||||
TestSwitchComma;
|
||||
TestSwitchDefault;
|
||||
TestTernarOperator;
|
||||
TestThisOutsideClass;
|
||||
TestTry;
|
||||
TestTryIf;
|
||||
TestTryReturn;
|
||||
|
||||
18
libsrc/ffdec_lib/testdata/as3_new/src/tests_classes/TestThisOutsideClass.as
vendored
Normal file
18
libsrc/ffdec_lib/testdata/as3_new/src/tests_classes/TestThisOutsideClass.as
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
package tests_classes
|
||||
{
|
||||
|
||||
public class TestThisOutsideClass
|
||||
{
|
||||
public var attrib : int = 0;
|
||||
public function run():void
|
||||
{
|
||||
helperFunc.call(this,"hello");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function helperFunc(a:String): void
|
||||
{
|
||||
trace(a);
|
||||
this.attrib++;
|
||||
}
|
||||
Reference in New Issue
Block a user