Commit b06f8820 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

jscript: Fix shift/reduce conflict caused by ArrayLiteral.

parent 122198a2
......@@ -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); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment