replaceFunctionShellsWithWrappedValue bug when function isn't called
j4k0xb opened this issue · comments
function fn() {
return 0;
}
const obj = { key: fn };
output:
function fn() {
return 0;
}
const obj = { 0 };
It shouldn't inline the function since it isn't being called
In case of console.log(fn);
it even replaces the whole statement with 0;
Welp, that's not good! Thanks for reporting.
Would you like to take it or shall I?
I can do it, should be a quick fix
Much appreciated
Good catch and great job resolving it! I really appreciate your attention to the project's standards!
Thanks!