mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibJS: Fix that functions in module did not look for var declarations
This commit is contained in:
parent
385c2f2eb8
commit
67865306d3
Notes:
sideshowbarker
2024-07-17 08:45:34 +09:00
Author: https://github.com/davidot
Commit: 67865306d3
Pull-request: https://github.com/SerenityOS/serenity/pull/16073
Issue: https://github.com/SerenityOS/serenity/issues/16044
Reviewed-by: https://github.com/linusg
3 changed files with 52 additions and 17 deletions
|
@ -239,3 +239,9 @@ describe("failing modules cascade", () => {
|
|||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe("scoping in modules", () => {
|
||||
test("functions within functions", () => {
|
||||
expectModulePassed("./function-in-function.mjs");
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue