JDK-8080265 : (function f(){return f; var f})() should evaluate to undefined value
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Affected Version: 8u60
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2015-05-13
  • Updated: 2015-05-13
  • Resolved: 2015-05-13
Related Reports
Duplicate :  
Description
(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.