mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 00:04:10 -08:00
parent
4e3cb5628f
commit
bf15f0e299
|
@ -291,6 +291,9 @@ public class AstWriter {
|
||||||
case Token.WHILE:
|
case Token.WHILE:
|
||||||
print((WhileLoop) node);
|
print((WhileLoop) node);
|
||||||
break;
|
break;
|
||||||
|
case Token.DEBUGGER:
|
||||||
|
writer.append("debugger;");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
if (node instanceof InfixExpression) {
|
if (node instanceof InfixExpression) {
|
||||||
printInfix((InfixExpression) node, precedence);
|
printInfix((InfixExpression) node, precedence);
|
||||||
|
|
|
@ -255,6 +255,11 @@ public class AstWriterTest {
|
||||||
assertEquals("delete a.b;", transform("delete a.b;"));
|
assertEquals("delete a.b;", transform("delete a.b;"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void writesDebugger() throws IOException {
|
||||||
|
assertEquals("debugger;debugger;", transform("debugger; debugger;"));
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void writesGlobalRef() throws IOException {
|
public void writesGlobalRef() throws IOException {
|
||||||
assertEquals(
|
assertEquals(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user