diff options
author | Evan Smal <evan.smal@hotmail.com> | 2023-01-26 08:33:18 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-26 20:25:25 +0000 |
commit | 93674e4383f7ae664442d454a9317113f8fe578d (patch) | |
tree | a35c029124c0d9b871fae699ad15b53e49c77a8e /Userland/Libraries/LibJS/Parser.cpp | |
parent | 82a152b69602de05a28034864185545207639a8c (diff) | |
download | serenity-93674e4383f7ae664442d454a9317113f8fe578d.zip |
LibJS: Remove DeprecatedString usage from SourceCode
This change also requires updates to some users of the SourceCode
interface since it no longer use DeprecatedString.
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 426b996793..494514d6ec 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(lexer.filename(), lexer.source())) + : 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_state(move(lexer), program_type) , m_program_type(program_type) { |