()
| 144118 | return finishArrayExpression(elements); |
| 144119 | } // 11.1.5 Object Initialiser |
| 144120 | function parseObjectPropertyKey() { |
| 144121 | index = lookahead.start; |
| 144122 | const token = lex(); // Note: This function is called only from parseObjectProperty(), where |
| 144123 | // EOF and Punctuator tokens are already filtered out. |
| 144124 | if (token.type === TokenStringLiteral || token.type === TokenNumericLiteral) { |
| 144125 | if (token.octal) throwError(token, MessageStrictOctalLiteral); |
| 144126 | return finishLiteral(token); |
| 144127 | } |
| 144128 | return finishIdentifier(token.value); |
| 144129 | } |
| 144130 | function parseObjectProperty() { |
| 144131 | var token, key, id, value; |
| 144132 | index = lookahead.start; |
no test coverage detected