swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
Merge branch 'main' into chore/upgrade-regress-0.11
stormslowly:chore/upgrade-regress-0.11
9 hours ago
fix(es/minifier): index strings by UTF-16 code unit (#12054) **Description:** JavaScript string property indexing uses UTF-16 code units. Existing constant folding checked string-literal indices against WTF-8 byte length, which can treat out-of-bounds indices as valid for non-ASCII BMP characters, astral characters, and lone surrogates. In the expression simplifier, that mismatch could also reach an `unreachable!` branch. This PR validates and reads string-literal indices using UTF-16 code units in both the minifier and expression simplifier. It preserves the WTF-8 byte-length check as a fast upper-bound rejection, folds valid indices to the correct code unit, and handles UTF-16 out-of-bounds indices according to each pass's existing semantics. Coverage includes BMP non-ASCII characters, astral surrogate pairs, and lone surrogates. The change was verified with: - `cargo test -p swc_ecma_minifier -p swc_ecma_transforms_optimization` - `(cd crates/swc_ecma_minifier && ./scripts/exec.sh)` - `cargo fmt --all` - `cargo clippy --all --all-targets -- -D warnings` **Related issue (if exists):** - #12043 - #12047 - #12050 - #12048 - #12051 - #12052 - #12053 - **#12054** (current) - #12055 - #12056 - #12057 - #12058 - #12049 - #12059 - #12060
main
9 hours ago
fix(testing): check ignored fixtures relative to crate root (#12073) **Description:** - Check ignored fixtures relative to `CARGO_MANIFEST_DIR`. - Prevent hidden ancestor directories, such as `.codex` worktrees, from ignoring all fixtures. - Add regression coverage and clarify the documented behavior.
main
9 hours ago
fix(testing): check ignored fixtures relative to crate root
feat/scope-ignored-testing
11 hours ago
fix(es/minifier): index strings by UTF-16 code unit
fix/string-index-utf16
12 hours ago
chore: add changeset for regress upgrade
stormslowly:chore/upgrade-regress-0.11
12 hours ago
chore: Make add-changeset push changes
kdy1:kdy1/add-changeset-push
13 hours ago
chore: require changeset skill for pull requests
kdy1:kdy1/require-changeset-skill
13 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
chore: upgrade regress to 0.11.1
#12070
9 hours ago
3b9c098
stormslowly:chore/upgrade-regress-0.11
CodSpeed Performance Gauge
0%
fix(testing): check ignored fixtures relative to crate root
#12073
11 hours ago
dd2fd4f
feat/scope-ignored-testing
CodSpeed Performance Gauge
0%
fix(es/minifier): index strings by UTF-16 code unit
#12054
3 days ago
a0d57ee
fix/string-index-utf16
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs