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

Object methods should call ToObject in ES6 mode

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      Many methods defined in ES5 to throw a TypeError when their argument is not an object should instead call ToObject in ES6. Nashorn should adapt its behavior based on whether it runs in ES5 or ES6 mode.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              attila Attila Szegedi
              Reporter:
              attila Attila Szegedi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: