()
| 1417 | } |
| 1418 | |
| 1419 | public ThrowStatement throwStatement() { |
| 1420 | Token position = consume(THROW); |
| 1421 | |
| 1422 | switch (la(false)) { |
| 1423 | case NL: |
| 1424 | case CR: |
| 1425 | case CRNL: |
| 1426 | case LINE_SEPARATOR: |
| 1427 | case PARAGRAPH_SEPARATOR: |
| 1428 | case SEMICOLON: |
| 1429 | throw new SyntaxError("unexpected line terminator after 'throw'"); |
| 1430 | } |
| 1431 | |
| 1432 | ThrowStatement statement = factory.throwStatement(position, expression()); |
| 1433 | semic(); |
| 1434 | return statement; |
| 1435 | } |
| 1436 | |
| 1437 | public WithStatement withStatement() { |
| 1438 | if (currentContext().isStrict()) { |
no test coverage detected