Commit f75e32b
committed
chore: replace deep copy with shallow spread in getTransformedTokenStream
\`copy(token)\` performed a full recursive deep copy even though all
mutations on the result only replace top-level properties (\`ref\`, \`xpr\`,
\`args\`, \`cast\`). A shallow spread \`{ ...token }\` is sufficient.
Also guards against string tokens spreading into character-indexed objects,
and drops the inner redundant \`copy(token)\` in the \`\$self\`/\`outerAlias\`
branch.1 parent 2316210 commit f75e32b
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1812 | 1812 | | |
1813 | 1813 | | |
1814 | 1814 | | |
1815 | | - | |
1816 | | - | |
| 1815 | + | |
1817 | 1816 | | |
1818 | 1817 | | |
1819 | 1818 | | |
| |||
1830 | 1829 | | |
1831 | 1830 | | |
1832 | 1831 | | |
1833 | | - | |
1834 | 1832 | | |
1835 | 1833 | | |
1836 | 1834 | | |
| |||
0 commit comments