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