-
Bug
-
Resolution: Fixed
-
P3
-
None
-
None
-
b81
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8142262 | emb-9 | Andreas Woess | P3 | Resolved | Fixed | team |
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;
}
try {
eval("function f() { for (x : y) { } }");
throw "should not reach here";
} catch (e) {
if (!(e instanceof SyntaxError)) throw e;
}
- backported by
-
JDK-8142262 Need to restore for container block from lexical context in finally
- Resolved