Index: src/parsing/pattern-rewriter.cc |
diff --git a/src/parsing/pattern-rewriter.cc b/src/parsing/pattern-rewriter.cc |
index 6e20282785d0ba3495b2b4b723f69cb6e861bfd6..5f6086896a1999fb2007ab8e078f9ae9b4e3f1e2 100644 |
--- a/src/parsing/pattern-rewriter.cc |
+++ b/src/parsing/pattern-rewriter.cc |
@@ -482,7 +482,7 @@ void Parser::PatternRewriter::VisitArrayLiteral(ArrayLiteral* node, |
if (spread != nullptr) { |
// array = []; |
- // if (!done) %concat_iterable_to_array(array, iterator); |
+ // if (!done) %concat_iterator_to_array(array, iterator); |
auto empty_exprs = new (zone()) ZoneList<Expression*>(0, zone()); |
auto array = CreateTempVar(factory()->NewArrayLiteral( |
empty_exprs, |
@@ -495,7 +495,7 @@ void Parser::PatternRewriter::VisitArrayLiteral(ArrayLiteral* node, |
arguments->Add(factory()->NewVariableProxy(array), zone()); |
arguments->Add(factory()->NewVariableProxy(iterator), zone()); |
auto spread_into_array_call = |
- factory()->NewCallRuntime(Context::CONCAT_ITERABLE_TO_ARRAY_INDEX, |
+ factory()->NewCallRuntime(Context::CONCAT_ITERATOR_TO_ARRAY_INDEX, |
arguments, RelocInfo::kNoPosition); |
auto if_statement = factory()->NewIfStatement( |