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

Nashorn: let & const declarations are not shared between scripts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8u40
    • 8u40, 9
    • core-libs
    • None
    • jdk 1.9.0-internal-sqe_2014_09_05_16_59-b00

    • b17
    • generic
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: