Fix regression in cctest/test-log/EquivalenceOfLoggingAndTraversal

TBR=sgjesse@chromium.org

Review URL: http://codereview.chromium.org/600136

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@3872 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent ea1b4f0e
......@@ -489,7 +489,7 @@ int GetScriptLineNumber(Handle<Script> script, int code_pos) {
if (!line_ends_len)
return -1;
if ((Smi::cast(line_ends_array->get(0)))->value() > code_pos)
if ((Smi::cast(line_ends_array->get(0)))->value() >= code_pos)
return script->line_offset()->value();
int left = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment