(function f(){return f; var f})() should evaluate to undefined value

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 8u60
    • Component/s: core-libs
    • None

      (function f(){return f; var f})() should evaluate to undefined value. While this works as expected with jdk9-dev/nashorn, the same fails with jdk8u60 ea as well as jdk8u-dev/nashorn repo. It evaluates to function "f" instead.

            Assignee:
            Sundararajan Athijegannathan
            Reporter:
            Sundararajan Athijegannathan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: