Parser accepts conditional catch clauses even when --no-syntax-extensions / -nse option is passed

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: None
    • Component/s: core-libs
    • None
    • 8
    • b08
    • generic
    • generic

        File: test.js

        try {
            func()
        } catch (e if e instanceof ReferenceError) {
            print("Got ReferenceError " + e);
        }

        jjs --no-syntax-extensions test.js

        Expected: syntax error for conditional catch clause
        Observed: no syntax error.

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

                Created:
                Updated:
                Resolved: