Switch should load expression even when there are no cases in it

XMLWordPrintable

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

      jjs> function f(){switch(x){}}
      jjs> f()

      Expected: ReferenceError for "x"
      Actual: no exception thrown

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

              Created:
              Updated:
              Resolved: