Skip to content

Commit eb3eccf

Browse files
author
Chris K
committed
DFL-3366 Parse error message not shown properly when script data doesn't start with a linebreak
1 parent 524a2ae commit eb3eccf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ecma-debugger/js-source-view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ cls.JsSourceView = function(id, name, container_class)
546546
{
547547
var error_line = 0;
548548
while(error_line < script_obj.line_arr.length &&
549-
script_obj.line_arr[error_line] < script_obj.parse_error.offset)
549+
script_obj.line_arr[error_line] <= script_obj.parse_error.offset)
550550
{
551551
error_line++;
552552
}

0 commit comments

Comments
 (0)