Comma handling in object literal parsing is wrong

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P4
    • 8
    • Affects Version/s: None
    • Component/s: core-libs
    • None
    • b98
    • generic
    • generic
    • Verified


      jjs> ({,})
      [object Object]
      jjs> ({,a:0})
      [object Object]
      jjs> ({a:0,,})
      [object Object]

      All these should throw SyntaxError exceptions. Only trailing comma is permitted as per specification.

            Assignee:
            Sundararajan Athijegannathan
            Reporter:
            Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: