Files
oxc-project__oxc/crates/oxc_react_compiler/fixtures/bigint-object-keys.js
Boshen c41d2a569e fix(react-compiler): support bigint object keys (#25749)
BigInt object keys fell through generic unsupported-key handling. Lower
them through the exact parser-provided decimal string, preserving
alternate bases and values beyond Number precision.

Validated with `just ready`.

AI-assisted.

<sub>Stack created with <a
href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a
href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub>
2026-08-17 17:22:28 +08:00

10 lines
145 B
JavaScript

function component(value) {
return {
1n: value,
0x10n: value,
0o10n: value,
0b10n: value,
9007199254740993n: value,
};
}