$ in the function name results in wrong function being invoked

XMLWordPrintable

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


      jjs> function f(){ function g(){return 0} function g(){return 1} function g$1(){return 2}; return g$1() }f()

      Expected: returns 2
      Actual: returns 1

      jjs> function f(){ function g(){return 0} var h=function g(){return 1}; function g$1(){return 2}; return h() }f()

      Expected: returns 1
      Actual: returns 2

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

              Created:
              Updated:
              Resolved: