()
| 128941 | |
| 128942 | |
| 128943 | function parseObjectPropertyKey() { |
| 128944 | var token; |
| 128945 | index = lookahead.start; |
| 128946 | token = lex(); // Note: This function is called only from parseObjectProperty(), where |
| 128947 | // EOF and Punctuator tokens are already filtered out. |
| 128948 | |
| 128949 | if (token.type === TokenStringLiteral || token.type === TokenNumericLiteral) { |
| 128950 | if (token.octal) { |
| 128951 | throwError(token, MessageStrictOctalLiteral); |
| 128952 | } |
| 128953 | |
| 128954 | return finishLiteral(token); |
| 128955 | } |
| 128956 | |
| 128957 | return finishIdentifier(token.value); |
| 128958 | } |
| 128959 | |
| 128960 | function parseObjectProperty() { |
| 128961 | var token, key, id, value; |
no test coverage detected