mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 03:31:45 +03:00
ef8d12154d
**Description:** The algorithm here is directly copied from terser, I don't if it's correct or can be improved, but it does fix the issue. **Related issue:** - Closes #7749
7 lines
106 B
JavaScript
7 lines
106 B
JavaScript
let depth = 0;
|
|
blackbox(function(n) {
|
|
depth += 1;
|
|
let k = visit(n);
|
|
return depth -= 1, k;
|
|
});
|