Enable some disabled tests that are already passing.
@@ -494,10 +494,7 @@ public final class UnreachableCodeEliminationTest extends CompilerTestCase {
"import {x} from './foo'; x('hi');");
}
- public void disabled_testLetConstBlocks_withES6Modules() {
- // Currently leaves the following AST for these tests
- // SCRIPT
- // MODULE_BODY
+ public void testLetConstBlocks_withES6Modules() {
test(
"export function f() {return 1; let a; } f();",
"export function f() {return 1;}");
@@ -509,16 +506,17 @@ public final class UnreachableCodeEliminationTest extends CompilerTestCase {
test(
"export function f() { x = 1; {let g; return x} let y}",
"export function f() { x = 1; {let g; return x;}} ");
-
- test(
- "export let x = 2;", "");
}
- public void disabled_testRemoveUnreachableCode_withES6Modules() {
- // Currently leaves the following AST for these tests
+ // Currently leaves an empty module.
// SCRIPT
// MODULE_BODY
+ // TODO(tbreisacher): Fix and enable.
+ public void disabled_testLetConstBlocks_withES6Modules2() {
+ test("export let x = 2;", "");
+ }
+ public void testRemoveUnreachableCode_withES6Modules() {
// Switch statements
test(
"export function foo() { switch (foo) { case 1:x = 1; return; break;"
