()
| 144363 | return expr; |
| 144364 | } // 11.12 Conditional Operator |
| 144365 | function parseConditionalExpression() { |
| 144366 | var expr, consequent, alternate; |
| 144367 | expr = parseBinaryExpression(); |
| 144368 | if (match("?")) { |
| 144369 | lex(); |
| 144370 | consequent = parseConditionalExpression(); |
| 144371 | expect(":"); |
| 144372 | alternate = parseConditionalExpression(); |
| 144373 | expr = finishConditionalExpression(expr, consequent, alternate); |
| 144374 | } |
| 144375 | return expr; |
| 144376 | } // 11.14 Comma Operator |
| 144377 | function parseExpression() { |
| 144378 | const expr = parseConditionalExpression(); |
| 144379 | if (match(",")) throw new Error(DISABLED); // no sequence expressions |
no test coverage detected