Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/error.invalid-numeric-literal-computed-property-assignment.js
2026-08-27 21:09:14 +00:00

9 lines
219 B
JavaScript

// Computed property assignment with numeric literals should use
// precise_value() to avoid float precision loss from JSON parsing.
function Component({obj}) {
obj[0] = 'first';
obj[1] = 'second';
return obj;
}