Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Later
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Run the code below. Note that scriptRecursionLimit is not set. The latest Gumbo ASDoc says that the default value is 1000.
2. Click the button to start recursing.
Actual Results:
It recurses 2,453 times.
Expected Results:
To stop after 1000.
Workaround (if any):
Write your own check.
Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
private var recurses:int = 0;
private function recurse():void
{ trace("recurses: " + recurses++); recurse(); }]]
>
</mx:Script>
<mx:Button label="Recurse" click="recurse()" />
</mx:Application>