Skip to content

Commit d24f785

Browse files
authoredJan 23, 2025··
perf(es/utils): Prevent too many recursion (#9931)
**Description:** ![image](https://github.com/user-attachments/assets/40841d3a-9fbf-41b5-98dd-45320d2e5261) Some functions may recurse too much and have a bad effect on the performance.
1 parent e4c1e03 commit d24f785

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+2720
-2593
lines changed
 

‎.changeset/tall-tigers-explain.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
swc_ecma_ast: patch
3+
swc_ecma_utils: major
4+
---
5+
6+
perf(es/utils): Prevent too many recursion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
//// [destructuringArrayBindingPatternAndAssignment3.ts]
2-
var _param, _param1, _param2;
32
import { _ as _sliced_to_array } from "@swc/helpers/_/_sliced_to_array";
3+
var _param, _param1, tmp1, e, _param2, tmp2 = void 0, e1 = void 0 === tmp2 ? e1 : tmp2;
44
(_param = _sliced_to_array([
55
1
66
], 2))[0], _param[1], (_param1 = _sliced_to_array([
77
1
8-
], 3))[0], _param1[1], _param1[2], (_param2 = _sliced_to_array([
8+
], 3))[0], _param1[1], e = void 0 === (tmp1 = _param1[2]) ? e : tmp1, (_param2 = _sliced_to_array([
99
1
1010
], 4))[0], _param2[1], _param2[2], _param2[3];

0 commit comments

Comments
 (0)
Please sign in to comment.