File size: 454 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const BuggyArguments = ({ variable }) => {
  if (Math.random() > 1) {
    // this will never execute because Math.random() > 1 will never be true but
    // for turbopack this should appear as a condition that could execute sometimes

    variable = "true";
  }

  return JSON.stringify({
    condition: variable === "true",
    buggedConditionalCheck: variable === "true" ? "true" : "false",
  });
};

const res = BuggyArguments({ variable: "false" });