jscript: Fix shift/reduce conflict caused by ArrayLiteral.

This commit is contained in:
Rob Shearman 2008-10-13 23:35:34 +01:00 committed by Alexandre Julliard
parent 122198a24f
commit b06f882072
1 changed files with 1 additions and 1 deletions

View File

@ -739,7 +739,7 @@ PrimaryExpression
/* ECMA-262 3rd Edition 11.1.4 */
ArrayLiteral
: '[' ']' { $$ = new_array_literal_expression(ctx, NULL, 0); }
| '[' Elision_opt ']' { $$ = new_array_literal_expression(ctx, NULL, $2+1); }
| '[' Elision ']' { $$ = new_array_literal_expression(ctx, NULL, $2+1); }
| '[' ElementList ']' { $$ = new_array_literal_expression(ctx, $2, 0); }
| '[' ElementList ',' Elision_opt ']'
{ $$ = new_array_literal_expression(ctx, $2, $4+1); }