swc/ecmascript/minifier/tests/compress/fixture/issues/2319/1/output.js
Donny/강동윤 c9437d3226
fix(es): Fix bugs (#2469)
swc:
 - Fix handling of `envs`.
 - Check for already fixed issues. (#2319)
2021-10-19 06:02:46 +00:00

8 lines
216 B
JavaScript

function foo(l, r) {
var lightGreeting;
if (l > 0) var greeting = "hello";
else var greeting = "howdy";
return r > 0 && (lightGreeting = greeting.substr(0, 2)), lightGreeting;
}
module.exports = foo;