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

Nashorn: let & const declarations are not shared between scripts

XMLWordPrintable

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

    • b17
    • generic
    • generic

        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>

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

                Created:
                Updated:
                Resolved: