swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(es/decorators): delay 2022 decorator initializers after private fields (#11847) **Description:** Fixes a 2022-03 decorator initialization ordering bug where `_initProto(this)` could run before decorated private instance field storage was initialized. In that ordering, `addInitializer` callbacks using `context.access.get(this)` could throw `TypeError: attempted to get private field on non-instance`. This tracks 2022-03 decorated instance field initializer ids and only injects `_initProto` into a safe later public field initializer. If decorated private storage has to be initialized first and no safe field exists, `_initProto` falls back to constructor injection so class field lowering runs it after instance storage setup. Added an exec regression fixture for the issue case with a decorated public field followed by decorated private and public fields. None. **Related issue:** Fixes #11846
main
11 hours ago
Merge branch 'main' into kdy1/fix-11846-decorator-init-order
kdy1/fix-11846-decorator-init-order
12 hours ago
ci: tolerate Claude comment cleanup failures
kdy1/fix-11846-decorator-init-order
12 hours ago
fix(es/decorators): split 2022 field initializers
kdy1/fix-11846-decorator-init-order
12 hours ago
chore: Add changeset for relative symlink inputs
kdy1/fix-issue-11880-preserve-symlinks
16 hours ago
perf: Lazily compute source file hashes (#11879) **Description:** Lazily initializes the source text and filename hashes for `SourceFile` instead of hashing in `SourceFile::new`. The existing `SourceFile::lazy` remains `CacheCell<SourceFileAnalysis>`; `SourceFileAnalysis` now carries `src_hash` and `name_hash`, and callers read values through `SourceFile::src_hash()` and `SourceFile::name_hash()`. Validation: - `git submodule update --init --recursive` - `cargo fmt --all` - `cargo test -p swc_common -p swc_ecma_ast` - `cargo clippy --all --all-targets -- -D warnings` **BREAKING CHANGE:** The public `SourceFile::src_hash` and `SourceFile::name_hash` fields are removed. Use `SourceFile::src_hash()` and `SourceFile::name_hash()` to read the hash values.
main
16 hours ago
chore: move swr ecosystem test to todos
kdy1/move-swr-ecosystem-test-to-todos
18 hours ago
Merge branch 'main' into kdy1/fix-11846-decorator-init-order
kdy1/fix-11846-decorator-init-order
23 hours ago
Latest Branches
CodSpeed Performance Gauge
+3%
fix(es/decorators): delay 2022 decorator initializers after private fields
#11847
12 hours ago
24b3862
kdy1/fix-11846-decorator-init-order
CodSpeed Performance Gauge
+4%
fix(es/modules): resolve relative symlinked inputs from cwd
#11883
16 hours ago
9a520cc
kdy1/fix-issue-11880-preserve-symlinks
CodSpeed Performance Gauge
0%
chore: move swr ecosystem test to todos
#11892
18 hours ago
522a615
kdy1/move-swr-ecosystem-test-to-todos
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs