mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
c6b22c57f8
Co-authored-by: Fábio Santos <fabiosantosart@gmail.com>
31 lines
449 B
JavaScript
31 lines
449 B
JavaScript
var x, y, z, a, b;
|
|
if (y) {
|
|
x = 1 + 1;
|
|
} else {
|
|
x = 2;
|
|
}
|
|
if (y) {
|
|
x = 1 + 1;
|
|
} else if (z) {
|
|
x = 2;
|
|
} else {
|
|
x = 3 - 1;
|
|
}
|
|
x = y ? "foo" : "fo" + "o";
|
|
x = y ? "foo" : y ? "foo" : "fo" + "o";
|
|
if (condition()) {
|
|
x = 10 + 10;
|
|
} else {
|
|
x = 20;
|
|
}
|
|
if (z) {
|
|
x = "fuji";
|
|
} else if (condition()) {
|
|
x = "fu" + "ji";
|
|
} else {
|
|
x = "fuji";
|
|
}
|
|
x = condition() ? "foobar" : "foo" + "bar";
|
|
x = y ? a : b;
|
|
x = y ? "foo" : "fo";
|