| Index: src/compiler/pipeline.cc
|
| diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc
|
| index 8c057790bdd693450925611fef034983a2104cd4..b105a317c20a2bc79f18a0a1869e2b77c62e184e 100644
|
| --- a/src/compiler/pipeline.cc
|
| +++ b/src/compiler/pipeline.cc
|
| @@ -838,7 +838,7 @@ Handle<Code> Pipeline::GenerateCode() {
|
| if (!script->IsUndefined() && !script->source()->IsUndefined()) {
|
| DisallowHeapAllocation no_allocation;
|
| int start = function->start_position();
|
| - int len = function->end_position() - start + 1;
|
| + int len = function->end_position() - start;
|
| String::SubStringRange source(String::cast(script->source()), start,
|
| len);
|
| for (const auto& c : source) {
|
|
|