summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Lexer.cpp
diff options
context:
space:
mode:
authorEvan Smal <evan.smal@hotmail.com>2023-01-26 08:40:21 -0500
committerLinus Groh <mail@linusgroh.de>2023-01-26 20:25:25 +0000
commit3226ce3d8354b918d0c6803fd4c24a612852660b (patch)
tree12c57d90d840552b35c9fcc6bb998530f66a5a92 /Userland/Libraries/LibJS/Lexer.cpp
parentcfa6b4d81547b7c109186e2db973344499e7f80a (diff)
downloadserenity-3226ce3d8354b918d0c6803fd4c24a612852660b.zip
LibJS: Remove some usage of DeprecatedString usage from Lexer
This changes the filename member from DeprecatedString to String. Parser has also been updated to meet the updated Lexer interface.
Diffstat (limited to 'Userland/Libraries/LibJS/Lexer.cpp')
-rw-r--r--Userland/Libraries/LibJS/Lexer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Lexer.cpp b/Userland/Libraries/LibJS/Lexer.cpp
index 366fe8948c..141c0db911 100644
--- a/Userland/Libraries/LibJS/Lexer.cpp
+++ b/Userland/Libraries/LibJS/Lexer.cpp
@@ -24,7 +24,7 @@ HashMap<char, TokenType> Lexer::s_single_char_tokens;
Lexer::Lexer(StringView source, StringView filename, size_t line_number, size_t line_column)
: m_source(source)
, m_current_token(TokenType::Eof, {}, {}, {}, filename, 0, 0, 0)
- , m_filename(filename)
+ , m_filename(String::from_utf8(filename).release_value_but_fixme_should_propagate_errors())
, m_line_number(line_number)
, m_line_column(line_column)
, m_parsed_identifiers(adopt_ref(*new ParsedIdentifiers))