| Index: src/runtime/runtime-debug.cc
|
| diff --git a/src/runtime/runtime-debug.cc b/src/runtime/runtime-debug.cc
|
| index b6884b6795e4bb355ed169f343d7dba1e860d007..0d9cc3e18b4b820fe115627924311bd097a2f36b 100644
|
| --- a/src/runtime/runtime-debug.cc
|
| +++ b/src/runtime/runtime-debug.cc
|
| @@ -1653,7 +1653,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)) {
|
|
|