Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8023252

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • 8
    • 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

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

              Created:
              Updated:
              Resolved: