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

NativeArguments has wrong implementation of isMapped()

    XMLWordPrintable

Details

    • b105
    • generic
    • generic
    • Verified

    Description

      The concept of mapped parameter in NativeArguments is wrong. If a function has a formal parameter but is called without passing a value for it, the parameter is considered to be not mapped according to ES 10.6.

      The following should return undefined instead of 1:

      (function(a) { arguments[0] = 1; return a; })()

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: