array.splice with a single argument should follow the de-facto standard

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • None
    • Affects Version/s: 8
    • Component/s: core-libs
    • None

      Using nashorn, array.splice(1) means array.splice(1, 0), this is the standard behavior but it is not compliant with v8.
      Using v8, array.splice(1) means array.splice(1, rooms.length); This is a non standard behavior but is the defacto standard defined by: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/splice

            Assignee:
            Jean-Francois Denise (Inactive)
            Reporter:
            Jean-Francois Denise (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: