mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
LibJS: Fix out-of-range error in Parser::Error::source_location_hint
This commit is contained in:
parent
cd507d0408
commit
cc54974431
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ public:
|
|||
if (line == 0 || column == 0)
|
||||
return {};
|
||||
StringBuilder builder;
|
||||
builder.append(source.split_view('\n')[line - 1]);
|
||||
builder.append(source.split_view('\n', true)[line - 1]);
|
||||
builder.append('\n');
|
||||
for (size_t i = 0; i < column - 1; ++i)
|
||||
builder.append(spacer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue