| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 4063a0fc7d751aa86c4fd47ab46b2e1e9d05bcf9..4b14643952d4dcce07a6d149555f4d7d52df1595 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -9387,13 +9387,6 @@ static Object* Runtime_SetScriptBreakPoint(Arguments args) {
|
| }
|
| Debug::SetBreakPoint(shared, break_point_object_arg, &position);
|
| position += shared->start_position();
|
| -
|
| - // The result position may become beyond script source end.
|
| - // This is expected when the function is toplevel. This may become
|
| - // a problem later when actual position gets converted into line/column.
|
| - if (shared->is_toplevel() && position == shared->end_position()) {
|
| - position = shared->end_position() - 1;
|
| - }
|
| return Smi::FromInt(position);
|
| }
|
| return Heap::undefined_value();
|
|
|