R=danno@chromium.org
TEST=cctest/test-run-intrinsics/CallFunction
Review URL: https://codereview.chromium.org/
916873002
Cr-Commit-Position: refs/heads/master@{#26604}
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) {