Commit 7606f47
perf(parser): avoid redundant
Build `value` after handling `=`, and allocate a fresh `IdentifierReference`
in each branch instead of cloning. Saves one clone per shorthand property.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>IdentifierReference clone in shorthand property1 parent 9b4d9f6 commit 7606f47
1 file changed
Lines changed: 5 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | 101 | | |
105 | 102 | | |
106 | 103 | | |
107 | 104 | | |
108 | | - | |
| 105 | + | |
| 106 | + | |
109 | 107 | | |
110 | 108 | | |
111 | 109 | | |
| |||
115 | 113 | | |
116 | 114 | | |
117 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
| |||
0 commit comments