summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/SourceTextModule.cpp
diff options
context:
space:
mode:
authordavidot <davidot@serenityos.org>2022-09-01 22:55:02 +0200
committerLinus Groh <mail@linusgroh.de>2022-09-02 02:07:37 +0100
commit462c6df24b8b86867ccd9297f83fc4cf9662b71f (patch)
tree9b781f4c17a814e6a47baa7a904b384307b8691f /Userland/Libraries/LibJS/SourceTextModule.cpp
parent3b56043612b1b161612b7ecc9448b45ae0949522 (diff)
downloadserenity-462c6df24b8b86867ccd9297f83fc4cf9662b71f.zip
LibJS: Only check for duplicate exports if they have a name
Together with removing an incorrect VERIFY this allows multiple star imports in a single module.
Diffstat (limited to 'Userland/Libraries/LibJS/SourceTextModule.cpp')
-rw-r--r--Userland/Libraries/LibJS/SourceTextModule.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/SourceTextModule.cpp b/Userland/Libraries/LibJS/SourceTextModule.cpp
index b86340312a..bac774498c 100644
--- a/Userland/Libraries/LibJS/SourceTextModule.cpp
+++ b/Userland/Libraries/LibJS/SourceTextModule.cpp
@@ -202,8 +202,6 @@ Result<NonnullRefPtr<SourceTextModule>, Vector<Parser::Error>> SourceTextModule:
// 2. If ie.[[ImportName]] is namespace-object, then
if (import_entry.is_namespace) {
// a. NOTE: This is a re-export of an imported module namespace object.
- VERIFY(export_entry.is_module_request() && export_entry.kind != ExportStatement::ExportEntry::Kind::NamedExport);
-
// b. Append ee to localExportEntries.
local_export_entries.empend(export_entry);
}