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

Array.removeAt() is broken in javascript mode in 0.8 dev

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Cannot Reproduce
    • Apache FlexJS 0.8.0
    • Apache FalconJX 0.8.0
    • FlexJS
    • None

    Description

      this function doesn't work in 0.8 dev.

      <fx:Script>
      		<![CDATA[
      		function foo():void
      		{
      			var a: Array = new Array("a", "b", "c");
      			a.removeAt(2);
      		}
      		
      		]]>
      	</fx:Script>
      

      the code is built to

      testlang07dec06.prototype.foo = function() {
        var /** @type {Array} */ a = new Array("a", "b", "c");
        a.removeAt(2);
      };
      

      but in earlier FlexJS sdk, it was built to
      a.splice(2,1);

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              panli@prominic.net Pan Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: