mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-23 04:25:31 +00:00
perf: optimize recursion, avoid stackoverflow on larger scripts (#2672)
This commit is contained in:
28
libsrc/ffdec_lib/testdata/as3_long/src/Main.as
vendored
Normal file
28
libsrc/ffdec_lib/testdata/as3_long/src/Main.as
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
package
|
||||
{
|
||||
import flash.display.Sprite;
|
||||
import flash.events.Event;
|
||||
import tests.*;
|
||||
/**
|
||||
* ...
|
||||
* @author JPEXS
|
||||
*/
|
||||
public class Main extends Sprite
|
||||
{
|
||||
TestLongScript;
|
||||
|
||||
public function Main()
|
||||
{
|
||||
if (stage) init();
|
||||
else addEventListener(Event.ADDED_TO_STAGE, init);
|
||||
}
|
||||
|
||||
private function init(e:Event = null):void
|
||||
{
|
||||
removeEventListener(Event.ADDED_TO_STAGE, init);
|
||||
// entry point
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
10013
libsrc/ffdec_lib/testdata/as3_long/src/tests/TestLongScript.as
vendored
Normal file
10013
libsrc/ffdec_lib/testdata/as3_long/src/tests/TestLongScript.as
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user