mirror of
https://github.com/swc-project/swc.git
synced 2024-12-28 08:04:43 +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
11 lines
112 B
JavaScript
11 lines
112 B
JavaScript
let depth = 0;
|
|
|
|
function foo(n) {
|
|
depth += 1;
|
|
let k = visit(n);
|
|
depth -= 1;
|
|
return k;
|
|
}
|
|
|
|
blackbox(foo);
|