| Index: src/parsing/pattern-rewriter.cc
|
| diff --git a/src/parsing/pattern-rewriter.cc b/src/parsing/pattern-rewriter.cc
|
| index 78830297f4d979015b14a1f37c69a4c3577c0481..7f38053e549c6cd7f5eb673b88e5b7bc10739fc9 100644
|
| --- a/src/parsing/pattern-rewriter.cc
|
| +++ b/src/parsing/pattern-rewriter.cc
|
| @@ -562,11 +562,8 @@ void Parser::PatternRewriter::VisitArrayLiteral(ArrayLiteral* node,
|
| Variable* array;
|
| {
|
| auto empty_exprs = new (zone()) ZoneList<Expression*>(0, zone());
|
| - array = CreateTempVar(factory()->NewArrayLiteral(
|
| - empty_exprs,
|
| - // Reuse pattern's literal index - it is unused since there is no
|
| - // actual literal allocated.
|
| - node->literal_index(), kNoSourcePosition));
|
| + array = CreateTempVar(
|
| + factory()->NewArrayLiteral(empty_exprs, kNoSourcePosition));
|
| }
|
|
|
| // done = true;
|
|
|