Array.prototype.length doesn't work as expected

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: core-libs
    • None
    • b115
    • generic
    • generic

      The length property of Array.prototype should behave like in an ordinary Array, i.e. it should be the value of the largest array key + 1. Currently it is not updated when inserting array keys:

      jjs> Array.prototype.length
      0
      jjs> Array.prototype[4] = 1;
      1
      jjs> Array.prototype.length
      0

            Assignee:
            Hannes Wallnoefer
            Reporter:
            Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: