swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(es/minifier): use numeric literals for non-finite values
fix/non-finite-number-minifier
1 hour ago
fix(es/optimization): preserve JSON numeric values
fix/json-number-serialization
1 hour ago
chore: Add changeset for encoding field count fix
quininer:x/fix-encoding-count
2 hours ago
fix(es/typescript): evaluate cooked enum templates (#12059) **Description:** Enum template evaluation currently reads raw template source and converts atoms lossily. Escapes, interpolation, and lone surrogates can therefore diverge from the cooked JavaScript string used at runtime. This PR evaluates template quasis and static template member keys from cooked WTF-8 values in both the transform and fast-DTS paths. Lookup and concatenation retain lone surrogates without changing the surrounding enum evaluation model. **Related issue (if exists):** - #12043 - #12047 - #12050 - #12048 - #12051 - #12052 - #12053 - #12054 - #12055 - #12056 - #12057 - #12058 - #12049 - **#12059** (current) - #12060
main
3 hours ago
fix(es/minifier): apply ToUint16 in fromCharCode (#12055) **Description:** `String.fromCharCode` applies ECMAScript `ToUint16` to every argument. The current floor-and-cast folding path does not match that behavior for negative, wrapping, or non-finite inputs. This PR adds `JsNumber::to_uint16` and uses it before folding ASCII `String.fromCharCode` results. Boundary coverage keeps the optimization limited to values whose output can be produced safely. **Related issue (if exists):** - #12043 - #12047 - #12050 - #12048 - #12051 - #12052 - #12053 - #12054 - **#12055** (current) - #12056 - #12057 - #12058 - #12049 - #12059 - #12060
main
3 hours ago
fix(es/minifier): preserve invalid Array lengths (#12056) **Description:** `Array(length)` throws a `RangeError` when the length is fractional or otherwise invalid. Folding every small numeric length into an array literal suppresses that observable exception. This PR requires candidate lengths to be integers before applying the literal-folding optimization and adds runtime coverage for invalid lengths. Valid small arrays are still folded as before. **Related issue (if exists):** - #12043 - #12047 - #12050 - #12048 - #12051 - #12052 - #12053 - #12054 - #12055 - **#12056** (current) - #12057 - #12058 - #12049 - #12059 - #12060
main
3 hours ago
fix(es/minifier): preserve non-canonical arguments access (#12052) **Description:** Computed `arguments` properties are currently parsed or cast directly as numeric indices. Non-canonical names and invalid indices can therefore be mistaken for parameter positions and replaced incorrectly. This PR resolves `arguments` slots through the shared canonical-index parser and ECMAScript number-to-string conversion before substituting parameters. An access is optimized only when its property denotes the same canonical argument index. **Related issue (if exists):** - Closes: #12066 --- - #12043 - #12047 - #12050 - #12048 - #12051 - **#12052** (current) - #12053 - #12054 - #12055 - #12056 - #12057 - #12058 - #12049 - #12059 - #12060
main
3 hours ago
fix(es/minifier): avoid inexact number radix folding (#12057) **Description:** `Number#toString(radix)` folding currently converts integer values through `u128`. Unsafe integers can already have rounded representations, so this conversion can produce digits that do not match JavaScript for non-power-of-two radices. This PR restricts radix folding to safe integers, with a separate exact path for supported power-of-two radices below the `u128` bound. Values outside those limits remain for runtime evaluation. **Related issue (if exists):** - #12043 - #12047 - #12050 - #12048 - #12051 - #12052 - #12053 - #12054 - #12055 - #12056 - **#12057** (current) - #12058 - #12049 - #12059 - #12060
main
3 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
fix(es/minifier): use numeric literals for non-finite values
#12048
2 days ago
3f6379d
fix/non-finite-number-minifier
CodSpeed Performance Gauge
0%
fix(es/optimization): preserve JSON numeric values
#12051
2 days ago
eb7dc46
fix/json-number-serialization
CodSpeed Performance Gauge
0%
fix(encoding): Fix incorrect fields count
#11905
2 hours ago
3ce4dbf
quininer:x/fix-encoding-count
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs