summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/SourceTextModule.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2022-11-23 12:39:23 +0100
committerLinus Groh <mail@linusgroh.de>2022-11-23 16:05:59 +0000
commite6331031c4cab0c29dfe6b4ae52940100eb11ff2 (patch)
tree2a98e599b05bfb5bbc987f3d98cd39801c4a2421 /Userland/Libraries/LibJS/SourceTextModule.cpp
parente0916dbb359d6181290daf1748fe5dce85015be1 (diff)
downloadserenity-e6331031c4cab0c29dfe6b4ae52940100eb11ff2.zip
LibJS: Make Parser::Error a standalone ParserError class
This allows us to forward declare it and reduce the number of things that need to include Parser.h.
Diffstat (limited to 'Userland/Libraries/LibJS/SourceTextModule.cpp')
-rw-r--r--Userland/Libraries/LibJS/SourceTextModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/SourceTextModule.cpp b/Userland/Libraries/LibJS/SourceTextModule.cpp
index c4dbc17173..db9af9e3f2 100644
--- a/Userland/Libraries/LibJS/SourceTextModule.cpp
+++ b/Userland/Libraries/LibJS/SourceTextModule.cpp
@@ -120,7 +120,7 @@ void SourceTextModule::visit_edges(Cell::Visitor& visitor)
}
// 16.2.1.6.1 ParseModule ( sourceText, realm, hostDefined ), https://tc39.es/ecma262/#sec-parsemodule
-Result<NonnullGCPtr<SourceTextModule>, Vector<Parser::Error>> SourceTextModule::parse(StringView source_text, Realm& realm, StringView filename, Script::HostDefined* host_defined)
+Result<NonnullGCPtr<SourceTextModule>, Vector<ParserError>> SourceTextModule::parse(StringView source_text, Realm& realm, StringView filename, Script::HostDefined* host_defined)
{
// 1. Let body be ParseText(sourceText, Module).
auto parser = Parser(Lexer(source_text, filename), Program::Type::Module);