This work implements React Compiler loses negative zero through phi optimization and codegen (open)
Description
Two compiler paths collapse JavaScriptβs observable distinction between 0 and -0: constant propagation compares phi constants with !==, and reactive-function code generation only emits a unary negative expression when a number is < 0.
Reproduction
Compile a memoized component whose phi alternates between 0 and -0, then observe the value through 1 / value. Current output reports positive infinity for both paths instead of positive then negative infinity.
Expected behavior
The compiler should preserve signed zero through optimization and emitted code.