mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
721a8eaced
Model `Symbol()` as identity-bearing so escaping symbols are memoized, matching Babel. The regression came from registering `Symbol` with copy-like primitive globals while allowing capitalized built-in calls. Validation: `cargo test -p oxc_react_compiler`; Babel output comparison; runtime identity check. `just ready` is blocked by three unrelated ANSI-sensitive Oxlint snapshot mismatches in this environment. AI-assisted: Codex was used to investigate, implement, verify, and prepare this PR.
5 lines
110 B
JavaScript
5 lines
110 B
JavaScript
function Component() {
|
|
const historyKey = Symbol('history');
|
|
return <Widget historyKey={historyKey} />;
|
|
}
|