1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:07:47 +00:00

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.
This commit is contained in:
davidot 2022-09-01 22:55:02 +02:00 committed by Linus Groh
parent 3b56043612
commit 462c6df24b
4 changed files with 9 additions and 3 deletions

View file

@ -186,6 +186,10 @@ describe("in- and exports", () => {
test("namespace has expected ordering", () => {
expectModulePassed("./namespace-order.mjs");
});
test("can have multiple star imports even from the same file", () => {
expectModulePassed("./multiple-star-imports.mjs");
});
});
describe("loops", () => {