mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +03:00
3d271e82a2
**Description:** This PR fixes the logic for dropping return values of IIFE. **Related issue:** - Closes https://github.com/swc-project/swc/issues/6141.
11 lines
206 B
JavaScript
11 lines
206 B
JavaScript
!function foo(obj) {
|
|
if (obj) {
|
|
for(const key in obj){
|
|
const element = obj[key];
|
|
element && foo(element.children);
|
|
}
|
|
return !0;
|
|
}
|
|
return !1;
|
|
}();
|