LibJS: Fix that functions in module did not look for var declarations

This commit is contained in:
davidot 2022-11-15 01:39:07 +01:00 committed by Linus Groh
commit 67865306d3
Notes: sideshowbarker 2024-07-17 08:45:34 +09:00
3 changed files with 52 additions and 17 deletions

View file

@ -239,3 +239,9 @@ describe("failing modules cascade", () => {
);
});
});
describe("scoping in modules", () => {
test("functions within functions", () => {
expectModulePassed("./function-in-function.mjs");
});
});