Ensure new operators can be serialized and deserialized.
@@ -283,6 +283,13 @@ public final class SerializeAndDeserializeAstTest extends CompilerTestCase {
testSame("const s = '\ud800';");
}
+ @Test
+ public void testLogicalAssignment() {
+ testSame("let x = 0; x ||= 1");
+ testSame("function f(x, y) { return x &&= y; }");
+ testSame("let y = null; if (y ??= 2) { function f() {} }");
+ }
+
@Test
public void testEsModule() {
testSame(
