Searched refs:TestLocalThrows (Results 1 – 2 of 2) sorted by relevance
/external/v8/test/mjsunit/es6/ |
D | block-let-declaration.js | 59 function TestLocalThrows(str, expect) { class 68 TestLocalThrows("if (true) let x;", SyntaxError); 69 TestLocalThrows("if (true) {} else let x;", SyntaxError); 70 TestLocalThrows("do let x; while (false)", SyntaxError); 71 TestLocalThrows("while (false) let x;", SyntaxError); 72 TestLocalThrows("label: let x;", SyntaxError); 73 TestLocalThrows("for (;false;) let x;", SyntaxError); 78 TestLocalThrows("if (true) const x = 1;", SyntaxError); 79 TestLocalThrows("if (true) {} else const x = 1;", SyntaxError); 80 TestLocalThrows("do const x = 1; while (false)", SyntaxError); [all …]
|
/external/v8/test/mjsunit/harmony/ |
D | block-let-declaration-sloppy.js | 59 function TestLocalThrows(str, expect) { class 68 TestLocalThrows("if (true) let x;", SyntaxError); 69 TestLocalThrows("if (true) {} else let x;", SyntaxError); 70 TestLocalThrows("do let x; while (false)", SyntaxError); 71 TestLocalThrows("while (false) let x;", SyntaxError); 72 TestLocalThrows("label: let x;", SyntaxError); 73 TestLocalThrows("for (;false;) let x;", SyntaxError); 78 TestLocalThrows("if (true) const x = 1;", SyntaxError); 79 TestLocalThrows("if (true) {} else const x = 1;", SyntaxError); 80 TestLocalThrows("do const x = 1; while (false)", SyntaxError); [all …]
|