Need to restore for container block from lexical context in finally

XMLWordPrintable

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

        with -J-esa --language=es6, the following code throws an AssertionError because the for container block is not popped from lexical scope on exception:
         try {
           eval("function f() { for (x : y) { } }");
           throw "should not reach here";
         } catch (e) {
           if (!(e instanceof SyntaxError)) throw e;
         }

              Assignee:
              Andreas Woess
              Reporter:
              Andreas Woess
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: