1 parent
96f7a375bd
commit
61b473aacb
2 files changed
+138
No files matched your search
@@ -6202,6 +6202,30 @@ function foo() {
|
||||
);
|
||||
}
|
||||
|
||||
// #4032
|
||||
function transitionedFromBleepToBloop() {
|
||||
return !!(
|
||||
// Start with a bloop.
|
||||
thing != null && (thing.foo && thing.foo.bar === 'bloop') &&
|
||||
// End up with a bleep.
|
||||
(thing.foo && thing.foo.bar === 'bleep')
|
||||
);
|
||||
|
||||
return Boolean(
|
||||
// Start with a bloop.
|
||||
thing != null && (thing.foo && thing.foo.bar === 'bloop') &&
|
||||
// End up with a bleep.
|
||||
(thing.foo && thing.foo.bar === 'bleep')
|
||||
);
|
||||
|
||||
return foo(
|
||||
// Start with a bloop.
|
||||
thing != null && (thing.foo && thing.foo.bar === 'bloop') &&
|
||||
// End up with a bleep.
|
||||
(thing.foo && thing.foo.bar === 'bleep')
|
||||
);
|
||||
}
|
||||
|
||||
=====================================output=====================================
|
||||
function foo() {
|
||||
return (
|
||||
@@ -6242,6 +6266,39 @@ function foo() {
|
||||
)
|
||||
}
|
||||
|
||||
// #4032
|
||||
function transitionedFromBleepToBloop() {
|
||||
return !!(
|
||||
// Start with a bloop.
|
||||
thing != null &&
|
||||
thing.foo &&
|
||||
thing.foo.bar === "bloop" &&
|
||||
// End up with a bleep.
|
||||
thing.foo &&
|
||||
thing.foo.bar === "bleep"
|
||||
)
|
||||
|
||||
return Boolean(
|
||||
// Start with a bloop.
|
||||
thing != null &&
|
||||
thing.foo &&
|
||||
thing.foo.bar === "bloop" &&
|
||||
// End up with a bleep.
|
||||
thing.foo &&
|
||||
thing.foo.bar === "bleep",
|
||||
)
|
||||
|
||||
return foo(
|
||||
// Start with a bloop.
|
||||
thing != null &&
|
||||
thing.foo &&
|
||||
thing.foo.bar === "bloop" &&
|
||||
// End up with a bleep.
|
||||
thing.foo &&
|
||||
thing.foo.bar === "bleep",
|
||||
)
|
||||
}
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
@@ -6288,6 +6345,30 @@ function foo() {
|
||||
);
|
||||
}
|
||||
|
||||
// #4032
|
||||
function transitionedFromBleepToBloop() {
|
||||
return !!(
|
||||
// Start with a bloop.
|
||||
thing != null && (thing.foo && thing.foo.bar === 'bloop') &&
|
||||
// End up with a bleep.
|
||||
(thing.foo && thing.foo.bar === 'bleep')
|
||||
);
|
||||
|
||||
return Boolean(
|
||||
// Start with a bloop.
|
||||
thing != null && (thing.foo && thing.foo.bar === 'bloop') &&
|
||||
// End up with a bleep.
|
||||
(thing.foo && thing.foo.bar === 'bleep')
|
||||
);
|
||||
|
||||
return foo(
|
||||
// Start with a bloop.
|
||||
thing != null && (thing.foo && thing.foo.bar === 'bloop') &&
|
||||
// End up with a bleep.
|
||||
(thing.foo && thing.foo.bar === 'bleep')
|
||||
);
|
||||
}
|
||||
|
||||
=====================================output=====================================
|
||||
function foo() {
|
||||
return (
|
||||
@@ -6328,6 +6409,39 @@ function foo() {
|
||||
);
|
||||
}
|
||||
|
||||
// #4032
|
||||
function transitionedFromBleepToBloop() {
|
||||
return !!(
|
||||
// Start with a bloop.
|
||||
thing != null &&
|
||||
thing.foo &&
|
||||
thing.foo.bar === "bloop" &&
|
||||
// End up with a bleep.
|
||||
thing.foo &&
|
||||
thing.foo.bar === "bleep"
|
||||
);
|
||||
|
||||
return Boolean(
|
||||
// Start with a bloop.
|
||||
thing != null &&
|
||||
thing.foo &&
|
||||
thing.foo.bar === "bloop" &&
|
||||
// End up with a bleep.
|
||||
thing.foo &&
|
||||
thing.foo.bar === "bleep",
|
||||
);
|
||||
|
||||
return foo(
|
||||
// Start with a bloop.
|
||||
thing != null &&
|
||||
thing.foo &&
|
||||
thing.foo.bar === "bloop" &&
|
||||
// End up with a bleep.
|
||||
thing.foo &&
|
||||
thing.foo.bar === "bleep",
|
||||
);
|
||||
}
|
||||
|
||||
================================================================================
|
||||
`;
|
||||
|
||||
|
||||
@@ -35,3 +35,27 @@ function foo() {
|
||||
a = b
|
||||
);
|
||||
}
|
||||
|
||||
// #4032
|
||||
function transitionedFromBleepToBloop() {
|
||||
return !!(
|
||||
// Start with a bloop.
|
||||
thing != null && (thing.foo && thing.foo.bar === 'bloop') &&
|
||||
// End up with a bleep.
|
||||
(thing.foo && thing.foo.bar === 'bleep')
|
||||
);
|
||||
|
||||
return Boolean(
|
||||
// Start with a bloop.
|
||||
thing != null && (thing.foo && thing.foo.bar === 'bloop') &&
|
||||
// End up with a bleep.
|
||||
(thing.foo && thing.foo.bar === 'bleep')
|
||||
);
|
||||
|
||||
return foo(
|
||||
// Start with a bloop.
|
||||
thing != null && (thing.foo && thing.foo.bar === 'bloop') &&
|
||||
// End up with a bleep.
|
||||
(thing.foo && thing.foo.bar === 'bleep')
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user