diff options
Diffstat (limited to 'deps/v8/src/regexp/regexp-utils.cc')
-rw-r--r-- | deps/v8/src/regexp/regexp-utils.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/deps/v8/src/regexp/regexp-utils.cc b/deps/v8/src/regexp/regexp-utils.cc index 1f89844f103..c787a502979 100644 --- a/deps/v8/src/regexp/regexp-utils.cc +++ b/deps/v8/src/regexp/regexp-utils.cc @@ -166,8 +166,7 @@ bool RegExpUtils::IsUnmodifiedRegExp(Isolate* isolate, Handle<Object> obj) { return last_index->IsSmi() && Smi::ToInt(last_index) >= 0; } -uint64_t RegExpUtils::AdvanceStringIndex(Isolate* isolate, - Handle<String> string, uint64_t index, +uint64_t RegExpUtils::AdvanceStringIndex(Handle<String> string, uint64_t index, bool unicode) { DCHECK_LE(static_cast<double>(index), kMaxSafeInteger); const uint64_t string_length = static_cast<uint64_t>(string->length()); @@ -199,7 +198,7 @@ MaybeHandle<Object> RegExpUtils::SetAdvancedStringIndex( Object::ToLength(isolate, last_index_obj), Object); const uint64_t last_index = PositiveNumberToUint64(*last_index_obj); const uint64_t new_last_index = - AdvanceStringIndex(isolate, string, last_index, unicode); + AdvanceStringIndex(string, last_index, unicode); return SetLastIndex(isolate, regexp, new_last_index); } |