mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
c41d2a569e
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>
10 lines
145 B
JavaScript
10 lines
145 B
JavaScript
function component(value) {
|
|
return {
|
|
1n: value,
|
|
0x10n: value,
|
|
0o10n: value,
|
|
0b10n: value,
|
|
9007199254740993n: value,
|
|
};
|
|
}
|