(function(x){var o={x:0}; with(o){delete x} return o.x})() evaluates to 0 instead of undefined

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 8u40
    • Component/s: core-libs
    • None
    • b22
    • generic
    • generic

        jjs -J-Djava.ext.dirs=$jdk9_dev/nashorn/dist

        jjs> (function(x){var o={x:0}; with(o){delete x} return o.x})()
        0

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

                Created:
                Updated:
                Resolved: