Avatar for the swc-project user
swc-project
swc
BlogDocsChangelog

Performance History

Latest Results

docs(es/module): Add TC39 spec references to module records
refactor/es-module-records
2 hours ago
chore: add changeset for react compiler lint API
imjordanxd:feat/react-compiler-lint-diagnostics
4 hours ago
fix(es/react-compiler): Correct catch and parameter scope resolution (#11985) **Description:** Fixes React Compiler scope conversion for catch and parameter bindings. The bug from #11982 was exposed by compiling an async `useCallback` with `catch (error) { return error; }`: the converted scope info did not consistently model the catch parameter as a value binding, so references to the catch value could be left unresolved and produce incorrect compiled output. This PR updates `SemanticBuilder` so declaration-space flags carry value-ness explicitly, with marker flags (`Param`, `CatchVariable`, `FunctionExpression`) layered onto value-bearing flags. Catch bindings stay in the catch scope and can be resolved from catch bodies and catch parameter initializers. It also models parameter initializers and destructuring patterns with a temporary internal resolution scope. Function, arrow, constructor, accessor, and catch parameters now resolve references before body bindings are collected, so defaults and computed pattern keys observe the intended lexical visibility: function expression names and parameter bindings are visible, while body bindings do not shadow parameter initialization. These internal parameter scopes are skipped when emitting React Compiler `ScopeInfo`, preserving the public scope tree. Coverage includes: - the async `useCallback` catch-binding compile-pass fixture for #11982 - catch destructuring with computed keys and initializer references - function parameter defaults resolving to outer bindings, later parameters, or named function expressions - named function expressions shadowed by params or body `var` declarations **Related issue:** - Closes #11982
main
6 hours ago

Latest Branches

CodSpeed Performance Gauge
0%
refactor(es/module): Align module transform records with spec terms#11992
2 hours ago
caa8ee5
refactor/es-module-records
CodSpeed Performance Gauge
+3%
2 hours ago
93c24c3
imjordanxd:feat/react-compiler-lint-diagnostics
CodSpeed Performance Gauge
0%
6 hours ago
a41c38b
Austaras:main
© 2026 CodSpeed Technology
Home Terms Privacy Docs