assertMsgType(MessageType.MASKING_SYMBOL, mq.getMessages().get(0));
assertMsgLevel(MessageLevel.LINT, mq.getMessages().get(0));
}
public final void testMaskedExceptionVariablesSame() throws Exception {
Block outerBlock = js(fromString(
"try { } catch (e) { try { } catch (e) { var x; } }"));
TryStmt t0 = (TryStmt) outerBlock.children().get(0);
CatchStmt c0 = t0.getCatchClause();
Block b0 = c0.getBody();
TryStmt t1 = (TryStmt) b0.children().get(0);
CatchStmt c1 = t1.getCatchClause();
Scope sn = fromProgram(outerBlock);
Scope sc0 = Scope.fromCatchStmt(sn, c0);
Scope.fromCatchStmt(sc0, c1);