19 lines
No EOL
435 B
JavaScript
19 lines
No EOL
435 B
JavaScript
// props.a.b should be added as a unconditional dependency to the reactive
|
|
// scope that produces x, since it is accessed unconditionally in all cfg
|
|
// paths
|
|
|
|
function TestCondDepInNestedIfElse(props, other) {
|
|
const x = {};
|
|
if (other |> foo(%)) {
|
|
if (bar()) {
|
|
x.a = props.a.b;
|
|
} else {
|
|
x.b = props.a.b;
|
|
}
|
|
} else if (other |> baz(%)) {
|
|
x.c = props.a.b;
|
|
} else {
|
|
x.d = props.a.b;
|
|
}
|
|
return x;
|
|
} |