diff options
author | Evan Smal <evan.smal@hotmail.com> | 2023-01-26 08:40:21 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-26 20:25:25 +0000 |
commit | 3226ce3d8354b918d0c6803fd4c24a612852660b (patch) | |
tree | 12c57d90d840552b35c9fcc6bb998530f66a5a92 /Userland/Libraries/LibJS/Parser.cpp | |
parent | cfa6b4d81547b7c109186e2db973344499e7f80a (diff) | |
download | serenity-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/Parser.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Parser.cpp b/Userland/Libraries/LibJS/Parser.cpp index 25ceaf4f1f..2a9c0c4b75 100644 --- a/Userland/Libraries/LibJS/Parser.cpp +++ b/Userland/Libraries/LibJS/Parser.cpp @@ -409,7 +409,7 @@ Parser::ParserState::ParserState(Lexer l, Program::Type program_type) } Parser::Parser(Lexer lexer, Program::Type program_type, Optional<EvalInitialState> initial_state_for_eval) - : m_source_code(SourceCode::create(String::from_deprecated_string(lexer.filename()).release_value_but_fixme_should_propagate_errors(), String::from_deprecated_string(lexer.source()).release_value_but_fixme_should_propagate_errors())) + : m_source_code(SourceCode::create(lexer.filename(), String::from_deprecated_string(lexer.source()).release_value_but_fixme_should_propagate_errors())) , m_state(move(lexer), program_type) , m_program_type(program_type) { |