statement.statement.visitStatement(this);
writeOp(JsFunction.OP_WITH_END);
} else {
// if an exception is thrown inside the with statement,
// it is necessary to restore the context
Statement saveTryStatement = currentTryStatement;
String saveTryLabel = currentTryLabel;
currentTryLabel = "finally";
currentTryStatement = statement;
statement.expression.visitExpression(this);
writeOp(JsFunction.OP_WITH_END);