Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8024970 André Bargull's list on Sep 17, 2013
  3. JDK-8027700

function redeclaration checks missing for declaration binding instantiation

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8
    • Fix Version/s: 8
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b117
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        See ECMA section "10.5 Declaration Binding Instantiation"

        jjs> Object.defineProperty(this,"x",{value:0})
        [object global]
        jjs> eval("function x(){}")
        0

        Expected: Throw TypeError
        Actual: no TypeError

        jjs>
        Object.defineProperty(this,"x",{value:0,writable:true,enumerable:false})
        [object global]
        jjs> eval("function x(){}")
        function x(){}

        Expected: Throw TypeError
        Actual: no TypeError

          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: