()
| 3216 | // 12.2 Variable Statement |
| 3217 | |
| 3218 | function parseVariableIdentifier() { |
| 3219 | var token, node = new Node(); |
| 3220 | |
| 3221 | token = lex(); |
| 3222 | |
| 3223 | if (token.type !== Token.Identifier) { |
| 3224 | if (strict && token.type === Token.Keyword && isStrictModeReservedWord(token.value)) { |
| 3225 | tolerateUnexpectedToken(token, Messages.StrictReservedWord); |
| 3226 | } else { |
| 3227 | throwUnexpectedToken(token); |
| 3228 | } |
| 3229 | } |
| 3230 | |
| 3231 | return node.finishIdentifier(token.value); |
| 3232 | } |
| 3233 | |
| 3234 | function parseVariableDeclaration() { |
| 3235 | var init = null, id, node = new Node(); |
no test coverage detected