Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-15379

The default scriptRecursionLimit of 1000 is not used.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Later
    • Adobe Flex SDK Previous
    • None
    • mx: Application
    • 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>

      Attachments

        Activity

          People

            adobejira Adobe JIRA
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: