return_with_no_value_in_if_body: { options = { conditionals: true, } input: { function foo(bar) { if (bar) { return; } else { return 1; } } } expect: { function foo (bar) { return bar ? void 0 : 1; } } }
index : tracifyjs | ||
Reverse engineer's tool for tracing the flow of data in JS program, based on UglifyJS |
aboutsummaryrefslogtreecommitdiff |
return_with_no_value_in_if_body: { options = { conditionals: true, } input: { function foo(bar) { if (bar) { return; } else { return 1; } } } expect: { function foo (bar) { return bar ? void 0 : 1; } } }