swc/crates/swc_ecma_minifier/tests/pass-1/9/2/input.js
Donny/강동윤 3d271e82a2
fix(es/minifier): Preserve return values of recursive IIFE (#6142)
**Description:**

This PR fixes the logic for dropping return values of IIFE.

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/6141.
2022-10-14 09:32:56 +09:00

6 lines
115 B
JavaScript

console.log("Greeting:", (function (value) {
return function () {
return value;
};
})("Hello")());