| Index: runtime/vm/regexp.cc
|
| diff --git a/runtime/vm/regexp.cc b/runtime/vm/regexp.cc
|
| index 75ee7ebe16c6a397c8e8ba6f1053c681d1aa5273..3516bc8423e5c5470188e4794bb6f39c02cc1dc5 100644
|
| --- a/runtime/vm/regexp.cc
|
| +++ b/runtime/vm/regexp.cc
|
| @@ -5004,7 +5004,7 @@ RegExpEngine::CompilationResult RegExpEngine::CompileBytecode(
|
| // Inserted here, instead of in Assembler, because it depends on information
|
| // in the AST that isn't replicated in the Node structure.
|
| static const intptr_t 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);
|
| }
|
|
|