| Index: src/runtime/runtime-debug.cc
|
| diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc
|
| index 5b8fb1231db0cb1d0e8e82da85e4b9ca83c34b6a..fd40abb9963d991740ab64be85356adbd9f4753f 100644
|
| --- a/src/runtime/runtime-debug.cc
|
| +++ b/src/runtime/runtime-debug.cc
|
| @@ -1666,7 +1666,8 @@ namespace {
|
| int ScriptLinePositionWithOffset(Handle<Script> script, int line, int offset) {
|
| if (line < 0 || offset < 0) return -1;
|
|
|
| - if (line == 0) return ScriptLinePosition(script, line) + offset;
|
| + if (line == 0 || offset == 0)
|
| + return ScriptLinePosition(script, line) + offset;
|
|
|
| Script::PositionInfo info;
|
| if (!Script::GetPositionInfo(script, offset, &info, Script::NO_OFFSET)) {
|
|
|