Input

function Component(props) {
  const [x = true ? 1 : 0] = props.y;
  return x;
}

export const FIXTURE_ENTRYPOINT = {
  fn: Component,
  params: [{y: []}],
};

Code

function Component(props) {
  const [t0] = props.y;
  const x = t0 === undefined ? (true ? 1 : 0) : t0;
  return x;
}

export const FIXTURE_ENTRYPOINT = {
  fn: Component,
  params: [{ y: [] }],
};

Eval output

(kind: ok) 1