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

With scope variable should not be accessible outside the with statement

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 9
    • 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.


            attila Attila Szegedi
            sundar Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: