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

ScriptFunction constructor should use is bound and is strict check rather than checking for 'arguments' and 'caller'

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b82
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        ScriptFunction constructor checks 'arguments' and 'caller' property by findProperty set to user accessor ('poison' functions that throws TypeError). This is done for bound and strict functions only and so the constructor code should those checks.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  sundar Sundararajan Athijegannathan
                  Reporter:
                  sundar Sundararajan Athijegannathan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: