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

Details

    • Sub-task
    • Resolution: Duplicate
    • P3
    • None
    • 9
    • core-libs
    • None

    Description

      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.


      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: