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

NativeArguments has wrong implementation of isMapped()

XMLWordPrintable

    • b105
    • generic
    • generic
    • Verified

      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; })()

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

              Created:
              Updated:
              Resolved: