Skip to content

Commit 2cac0ea

Browse files
committed
fix: fix mapped column num.
1 parent 6189f24 commit 2cac0ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bridge/third_party/quickjs/src/core/runtime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ void build_backtrace(JSContext* ctx, JSValueConst error_obj, const char* filenam
11971197
JS_FreeCString(ctx, atom_str);
11981198
atom_str = mapped_position.source;
11991199
line_num = (int) mapped_position.line;
1200-
column_num = (int) mapped_position.column;
1200+
column_num = (int) mapped_position.column + 1;
12011201
}
12021202
dbuf_printf(&dbuf, " (%s", atom_str ? atom_str : "<null>");
12031203
} else {

0 commit comments

Comments
 (0)