mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:48:14 +00:00
LibJS: Fix that functions in module did not look for var declarations
This commit is contained in:
parent
385c2f2eb8
commit
67865306d3
3 changed files with 52 additions and 17 deletions
|
@ -0,0 +1,11 @@
|
|||
function foo() {
|
||||
function bar() {}
|
||||
bar.baz = "value on bar";
|
||||
|
||||
return bar;
|
||||
}
|
||||
|
||||
foo.bippity = "boppity";
|
||||
const fooResult = foo();
|
||||
|
||||
export const passed = fooResult.baz === "value on bar" && foo.bippity === "boppity";
|
Loading…
Add table
Add a link
Reference in a new issue