Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8057691

Nashorn: let & const declarations are not shared between scripts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u40, 9
    • Fix Version/s: 8u40
    • Component/s: core-libs
    • Labels:
      None
    • Environment:

      jdk 1.9.0-internal-sqe_2014_09_05_16_59-b00

    • Subcomponent:
    • Resolved In Build:
      b17
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        I tried with jjs
        $ jjs --language=es6
        jjs> var x = 2;
        jjs> let a = 1;
        jjs> x
        2
        jjs> a
        <shell>:1 ReferenceError: "a" is not defined
        jjs>

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                hannesw Hannes Wallnoefer
                Reporter:
                slugovoy Sergey Lugovoy (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: