Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-876

JavaScript: support "for each...in" construct

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: JS, Parsing
    • Labels:

      Description

      Javascript editor reports error on lines containing code like 'for each (var x in y)' which I believe is valid code (at least is works perfectly well), like:

      function foo() {
        var arr = [ 'A', 'B' ];
        for each (var a in arr) { // <-- error
        }
      }
      

      here: 'Expected an identifier and instead saw 'var'.

      https://developer.mozilla.org/en/JavaScript/Reference/Statements/for_each...in

        Attachments

          Activity

            People

            • Assignee:
              pinnamuri Praveen Innamuri (Inactive)
              Reporter:
              aptana1 Aptana
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Git Integration