replaceFunctionShellsWithWrappedValue bug when function isn't called
j4k0xb opened this issue · 4 comments
j4k0xb commented
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;
BenBaryoPX commented
Welp, that's not good! Thanks for reporting.
Would you like to take it or shall I?
j4k0xb commented
I can do it, should be a quick fix
BenBaryoPX commented
Much appreciated
BenBaryoPX commented
Good catch and great job resolving it! I really appreciate your attention to the project's standards!
Thanks!