Chromium Code Reviews| Index: src/ast/ast-literal-reindexer.cc |
| diff --git a/src/ast/ast-literal-reindexer.cc b/src/ast/ast-literal-reindexer.cc |
| index fce33e70b8f7caf9aec7a25aaf3fe1ebfa00344e..8f0f8a23387e9c9d90853c6ed31f8afca8913f29 100644 |
| --- a/src/ast/ast-literal-reindexer.cc |
| +++ b/src/ast/ast-literal-reindexer.cc |
| @@ -187,7 +187,15 @@ void AstLiteralReindexer::VisitCompareOperation(CompareOperation* node) { |
| void AstLiteralReindexer::VisitSpread(Spread* node) { |
| +#if 0 |
| + // This is reachable because ParserBase::ParseArrowFunctionLiteral calls |
| + // ReindexLiterals before calling RewriteDestructuringAssignments. |
| + // Breaking test case: var f = ([...a]) => {} |
| + // TODO(rossberg): Add a proper TODO here as to what needs to be done. |
| + UNREACHABLE(); |
| +#else |
|
nickie
2016/01/18 11:34:45
Andreas, does this stay?
nickie
2016/01/18 14:25:39
We decided the first two lines of the comment stay
|
| Visit(node->expression()); |
| +#endif |
| } |