summaryrefslogtreecommitdiff
path: root/chromium/v8/src/compiler/typer.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/v8/src/compiler/typer.cc')
-rw-r--r--chromium/v8/src/compiler/typer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/v8/src/compiler/typer.cc b/chromium/v8/src/compiler/typer.cc
index 94b6e5a9223..64a028015c2 100644
--- a/chromium/v8/src/compiler/typer.cc
+++ b/chromium/v8/src/compiler/typer.cc
@@ -1450,7 +1450,7 @@ Type* Typer::Visitor::JSCallTyper(Type* fun, Typer* t) {
return Type::String();
case kStringIndexOf:
case kStringLastIndexOf:
- return Type::Range(-1.0, String::kMaxLength - 1.0, t->zone());
+ return Type::Range(-1.0, String::kMaxLength, t->zone());
case kStringEndsWith:
case kStringIncludes:
return Type::Boolean();