Files
bun-src/test/bundler/transpiler/react-compiler-fixtures/constant-propagation-unary-number.js
2026-08-27 21:09:14 +00:00

26 lines
367 B
JavaScript

import {Stringify} from 'shared-runtime';
function foo() {
const a = -1;
return (
<Stringify
value={[
2 * a,
-0,
0 === -0,
-Infinity,
-NaN,
a * NaN,
a * Infinity,
a * -Infinity,
]}
/>
);
}
export const FIXTURE_ENTRYPOINT = {
fn: foo,
params: [],
isComponent: false,
};