Fix capturing for function declarations

This commit is contained in:
Andrew Morris
2023-03-24 16:25:27 +11:00
parent a7ced2eb76
commit 36e0b0d2cc
5 changed files with 146 additions and 57 deletions

View File

@@ -0,0 +1,11 @@
// test_output! 3
export default function () {
const x = 3;
function foo() {
return x;
}
return foo();
}