LibJS: Make ParserError::to_string infallible

This commit is contained in:
Shannon Booth 2024-04-05 00:39:53 +02:00 committed by Tim Flynn
commit 0090b916dd
Notes: sideshowbarker 2024-07-16 21:51:02 +09:00
11 changed files with 17 additions and 17 deletions

View file

@ -19,7 +19,7 @@ struct ParserError {
ByteString message;
Optional<Position> position;
ErrorOr<String> to_string() const;
String to_string() const;
ByteString to_byte_string() const;
ByteString source_location_hint(StringView source, char const spacer = ' ', char const indicator = '^') const;
};