Home | History | Annotate | Download | only in harmony

Lines Matching refs:let

30 // Test let declarations in various settings.
35 let x;
36 let y = 2;
41 let y;
42 let x = 3;
51 let y;
66 // Test let declarations in statement positions.
67 TestLocalThrows("if (true) let x;", SyntaxError);
68 TestLocalThrows("if (true) {} else let x;", SyntaxError);
69 TestLocalThrows("do let x; while (false)", SyntaxError);
70 TestLocalThrows("while (false) let x;", SyntaxError);
71 TestLocalThrows("label: let x;", SyntaxError);
72 TestLocalThrows("for (;false;) let x;", SyntaxError);
73 TestLocalThrows("switch (true) { case true: let x; }", SyntaxError);
74 TestLocalThrows("switch (true) { default: let x; }", SyntaxError);