Chromium Code Reviews| Index: src/parser.cc |
| diff --git a/src/parser.cc b/src/parser.cc |
| index 9e7b4b311ecd6ab3888ea9e73dff68c350652759..6b9242996a4e46baebcf1f2b0a09867e345b5f05 100644 |
| --- a/src/parser.cc |
| +++ b/src/parser.cc |
| @@ -4149,7 +4149,10 @@ RegExpTree* RegExpParser::ParseGroup() { |
| } else { |
| ASSERT(type == '=' || type == '!'); |
| bool is_positive = (type == '='); |
| - return new RegExpLookahead(body, is_positive); |
| + return new RegExpLookahead(body, |
| + is_positive, |
| + end_capture_index - capture_index, |
| + capture_index); |
| } |
| } |