1test("Declaration in single-statement context is a syntax error",()=>{2expect("if (0) const foo = 1").not.toEval();3expect("while (0) function foo() {}").not.toEval();4expect("for (var 0;;) class foo() {}").not.toEval();5expect("do let foo = 1 while (0)").not.toEval();6});