perf: optimize recursion, avoid stackoverflow on larger scripts (#2672)

This commit is contained in:
Jindra Petřík
2026-03-20 07:56:39 +01:00
parent cd8a9dbdad
commit 2bc1c4e012
24 changed files with 31249 additions and 623 deletions

View 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
}
}
}

File diff suppressed because it is too large Load Diff