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

Support ES5 getter/setter syntax in Javascript parser

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Aptana Studio 3.2.1
    • Fix Version/s: None
    • Component/s: Editor, JS
    • Labels:
      None
    • Story Points:
      20

      Description

      While testing APSTUD-4845, I tried to play with getter/setter syntax for missing_property errors that JSLint produces. However, even valid syntax seems to break with our parser currently.

      var obj = (function () {
          var a;
          return {
              get a() {
                  return a;
              },
             
              set a(value) {
                  a = 'prepender: ' + value;
              }
          };
      }());
      

      Our parser produces a Syntax Error: unexpected token "a" for the "get a" line.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pinnamuri Praveen Innamuri (Inactive)
                Reporter:
                cwilliams Christopher Williams
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Git Integration