Open overlookmotel opened 1 year ago
The following works, but I'm not sure if there are tests for it:
Input:
const x = 1; function f() { return x; } function f2() { return x + f.y; } f.y = 100; export default f2;
Output:
const scopeIndex = ((x, f$0) => [ f$0 = function f() { return x; }, function f2() { return x + f$0.y; } ])(1); Object.assign(scopeIndex[0], {y: 100}); export default scopeIndex[1];
If there are not tests already, add some. It would be easy for #426 to break this.
The following works, but I'm not sure if there are tests for it:
Input:
Output:
If there are not tests already, add some. It would be easy for #426 to break this.