Files
oxc-project__oxc/crates/oxc_react_compiler/tests/snapshots/bigint-object-keys.snap
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

24 lines
430 B
Plaintext

---
source: crates/oxc_react_compiler/tests/snapshot.rs
input_file: crates/oxc_react_compiler/fixtures/bigint-object-keys.js
---
import { c as _c } from "react/compiler-runtime";
function component(value) {
const $ = _c(2);
let t0;
if ($[0] !== value) {
t0 = {
"1": value,
"16": value,
"8": value,
"2": value,
"9007199254740993": value
};
$[0] = value;
$[1] = t0;
} else {
t0 = $[1];
}
return t0;
}