| Index: src/regexp/jsregexp.cc
|
| diff --git a/src/regexp/jsregexp.cc b/src/regexp/jsregexp.cc
|
| index f0abc9a8b335437c4c607a8ef8fe16b48eb901a6..441c76b95d4fc5419f68b9d1c954a71f77146d1d 100644
|
| --- a/src/regexp/jsregexp.cc
|
| +++ b/src/regexp/jsregexp.cc
|
| @@ -6742,8 +6742,7 @@ RegExpEngine::CompilationResult RegExpEngine::Compile(
|
| // Inserted here, instead of in Assembler, because it depends on information
|
| // in the AST that isn't replicated in the Node structure.
|
| static const int kMaxBacksearchLimit = 1024;
|
| - if (is_end_anchored &&
|
| - !is_start_anchored &&
|
| + if (is_end_anchored && !is_start_anchored && !is_sticky &&
|
| max_length < kMaxBacksearchLimit) {
|
| macro_assembler.SetCurrentPositionFromEnd(max_length);
|
| }
|
|
|