With scope variable should not be accessible outside the with statement

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 9
    • Component/s: core-libs
    • None

      jjs> (function(o){ try{with(o){return x}}finally{return x} })({x: 1})


      Expected: ReferenceError
      Actual: no error.

      When we "inline" finally block, we start using "x" inside the 'with' scope.


            Assignee:
            Attila Szegedi
            Reporter:
            Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: