function redeclaration checks missing for declaration binding instantiation

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P3
    • 8
    • Affects Version/s: 8
    • Component/s: core-libs
    • None
    • b117
    • generic
    • generic

        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

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

                Created:
                Updated:
                Resolved: