Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Dec 28, 2024
1 parent ad1fe92 commit f2b1ce1
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1174,8 +1174,14 @@ mod test {
test("var x; 'undefined' === typeof x", "var x; x === undefined");
test("var x; 'undefined' == typeof x", "var x; x === undefined");

test("var x; function foo() { typeof x !== 'undefined' }", "var x; function foo() { x !== undefined }");
test("typeof x !== 'undefined'; function foo() { var x }", "typeof x < 'u'; function foo() { var x }");
test(
"var x; function foo() { typeof x !== 'undefined' }",
"var x; function foo() { x !== undefined }",
);
test(
"typeof x !== 'undefined'; function foo() { var x }",
"typeof x < 'u'; function foo() { var x }",
);
test("typeof x !== 'undefined'; { var x }", "x !== undefined; { var x }");
test("typeof x !== 'undefined'; { let x }", "typeof x < 'u'; { let x }");
test("typeof x !== 'undefined'; var x", "x !== undefined; var x");
Expand Down

0 comments on commit f2b1ce1

Please sign in to comment.